>-----Original Message----- >From: Tutor [mailto:[email protected]] On >Behalf Of Steven D'Aprano >Sent: Sunday, November 23, 2014 4:16 PM >To: [email protected] >Subject: Re: [Tutor] yes, I am being lazy... > >On Sun, Nov 23, 2014 at 03:37:12PM -0800, Clayton Kirkwood wrote: >[...] >> >Installed c:\python33\lib\site-packages\requests-2.4.3-py3.3.egg >> >Processing dependencies for requests==2.4.3 Finished processing >> >dependencies for requests==2.4.3 >> >----------------- >> >Could you paste what your output actually was? Perhaps something >> >else going on. >> >> It is what you have above. However, I thought new modules and packages >> were supposed to put something in the /python34/lib directory. Are you >> saying that downloaded packages are only supposed to end up in the >> site-packages directory? Requests also installs urllib3. It doesn't >show up in lib either. > >Correct. The lib directory is for the standard library. Third-party >modules go into site-packages. Your own modules should go somewhere in >your home directory. > > >> >As an aside -- it's **much** easier to use "pip" to install packages >> >into python, "pip" will automatically download and correctly install >> >a package into your python environment. And, it is included on >> >Windows on Python 3.4+ (previous versions you have to install pip by >> >hand.) Consequently, with a standard Python 3.4 install (as you >> >appear to have?), all you need to do to install a module like >> >requests, is enter the following commands: >> > >> >cd c:\Python34\Scripts >> >pip install requests >> >> I will use this in the future! How does it know where the package >origin is? > >pip knows how to look up packages on PyPI (the Python Packaging Index). >It handles downloading the package from PyPI and installing it.
Ah, much is more clear now. I was unable to find instruction and guidance on line for this. Must have looked in totally wrong places. Thanks all, Clayton > > >-- >Steven >_______________________________________________ >Tutor maillist - [email protected] >To unsubscribe or change subscription options: >https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
