Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80958

Re: import graphics library; causes error

References <acf29cb8-d11b-4134-8d03-7be5a078eae6@googlegroups.com> <0925b45d-aa27-472c-af81-f1594ee17ead@googlegroups.com>
Date 2014-11-17 14:11 +1100
Subject Re: import graphics library; causes error
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.15944.1416193923.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Nov 17, 2014 at 2:03 PM, ryguy7272 <ryanshuell@gmail.com> wrote:
> Well, that's a damn good question.  I thought, by defailt, everything was downloaded to this folder:
> 'C:\Python27\Lib\site-packages'
>
> In there, I have all kinds of things like:
> 'setuptools-6.1.dist-info', 'pip-1.5.6.dist-info', etc.
> All kinds of other things too.
>
> It seems there is always a copy, so I cut/paste the folders named 'setuptools' & 'pip' (always taking off the versions and identifiers and the like...).  Then I cut/paste everything into this folder:
> 'C:\Python27\Lib'
>
> Is that how it's done or not?

Most definitely not. That is not how you should go about installing
things. You're packing everything into the standard library, certain
to cause a mess. Just leave them in site-packages - they ought to be
importable from there. If they're not, you most likely have one very
simple configuration issue to fix, and then everything will just work.

> Python is by far the most backwards type of technology that I can think of.  Using it is completely counter-productive.  I can't take it serious.
>

You're blaming Python for your poor use of it. Python, as a
technology, is not the cause of your issues. Get to know the language
and its standard library first, then move on to learning about the
entire ecosystem of PyPI packages; base your opinion of Python
primarily on the language, not on what people do with it. Do you judge
C on the basis of the IOCCC? No, you judge it on the basis of manual
memory management and segfaults. (That said, I do like C... as a
language for writing high level languages in. I try to avoid writing
actual C code.)

ChrisA

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

import graphics library; causes error ryguy7272 <ryanshuell@gmail.com> - 2014-11-16 12:39 -0800
  Re: import graphics library; causes error Terry Reedy <tjreedy@udel.edu> - 2014-11-16 18:09 -0500
  Re: import graphics library; causes error ryguy7272 <ryanshuell@gmail.com> - 2014-11-16 19:03 -0800
    Re: import graphics library; causes error Chris Angelico <rosuav@gmail.com> - 2014-11-17 14:11 +1100
    Re: import graphics library; causes error Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-17 21:24 +1100
    Re: import graphics library; causes error Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-17 12:14 +0000
    Re: import graphics library; causes error YBM <ybmess@nooos.fr.invalid> - 2014-11-17 13:21 +0100
  Re: import graphics library; causes error Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-17 00:35 -0700

csiph-web