Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 30 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: It works in 1.2.1.post1. – Bunyk Dec 2 '13 at 16:58
It appears this doesn't work for every package. E.g. pip show -f nbconvert gives Files: Cannot locate installed-files.txt. – Alex Coventry May 27 at 12:54

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


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.