[Tutor] yes, I am being lazy...
steve at pearwood.info
Mon Nov 24 01:15:34 CET 2014
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.
More information about the Tutor