How do I list the files associated with a Python package installed using pip or easy_install?
I've installed a Python package using pip, which is a replacement for easy_install. How do I get a list of which installed files are associated with this package?
Basically, I'm looking for the Python package equivalent of
dpkg -L
or
rpm -ql
You could do that by using command:
pip show -f <package>
Two years later, most pip instances have show, however, not all packages have the installed-files.txt program for the subcommand to read.
A workaround is to fire up the python shell and do this:
>>> import eventlet
>>> eventlet.__path__
['/usr/lib/python2.7/dist-packages/eventlet']
where "eventlet" is the package I installed with pip.