Take the 2-minute tour ×

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".

share|improve this question

2 Answers 2

up vote 8 down vote accepted

You could do that by using command:

pip show -f <package>
share|improve this answer
Does not work for me, pip: error: No command by the name pip show. (Using pip 1.1) –  Zitrax Dec 2 '13 at 11:40
@Zitrax Well, currently I am using pip 1.4.1, and it works, may be you should upgrade pip. –  Bunyk Dec 2 '13 at 16:54
Yes, here is the answer to that: stackoverflow.com/a/14060138/816449 It works in 1.2.1.post1. –  Bunyk Dec 2 '13 at 16:58

I use virtualenv with pip, so here are the steps I follow. Assume I'm working in the dave_venv virtual environment.

$ cat ~/.bashrc

export WORKON_HOME=/usr/local/virtualenvs

$ cd /usr/local/virtualenvs/dave_venv/lib/python2.6/site-packages
$ ls # This should show <your_package>.
$ cd <your_package>
$ ls # now you're looking at your package's files.
share|improve this answer
works in most cases, but not if the package installs any command-line scripts, which would end up in usr/local/bin.... also, some packages may install multiple modules... –  hwjp Oct 31 '12 at 11:33

Your Answer


