Where does pip install to?



Where does pip install to? I’ve checked /usr/local/lib/python3.4/dist-packages/ but it is empty.


Turns out it installs packages to /home/ubuntu/virtualenvs/venv-3.4.2/lib/python3.4/site-packages


CircleCI containers use a virtual environment for Python, so PIP will target the Python site-packages directory based on what version you have active.

You can see which is active by running pyenv local or to get even more specific you can do pip --version
which will report something like:

pip 8.1.2 from /home/ubuntu/pyenv/versions/2.7.11/lib/python2.7/site-packages (python 2.7)