HiveBrain v1.2.0
Get Started
← Back to all entries
patternpythonCriticalCanonical

Where does pip install its packages?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
pipinstallwherepackagesdoesits

Problem

I activated a virtualenv which has pip installed. I did
pip3 install Django==1.8


and Django successfully downloaded. Now, I want to open up the Django folder. Where is the folder located?

Normally it would be in "downloads", but I'm not sure where it would be if I installed it using pip in a virtualenv.

Solution

pip when used with virtualenv will generally install packages in the path /lib//site-packages.

For example, I created a test virtualenv named venv_test with Python 2.7, and the django folder is in venv_test/lib/python2.7/site-packages/django.

Context

Stack Overflow Q#29980798, score: 183

Revisions (0)

No revisions yet.