Question regarding 2 modules installed via 'pip'
Roy Smith
roy at panix.com
Sat Nov 16 09:25:39 EST 2013
In article <cfd71610-1e34-4fec-82b0-fac2d4e91f7b at googlegroups.com>,
Ned Batchelder <ned at nedbatchelder.com> wrote:
> Just as you use "which python" to figure out what "python" was executing,
> "which pip" will help you figure out what "pip" is running.
And along those lines, if you're unsure where you're importing a module
from, you can examine the __file__ attribute to find out:
>>> import requests
>>> requests.__file__
'/home/songza/deploy/rel-2013-11-14d/python/local/lib/python2.7/site-pack
ages/requests/__init__.pyc'
More information about the Python-list
mailing list