Finding python’s site-packages directory

Python modules or packages that you install yourself are installed in a directory called site-packages. The location of this directory is subdivided into the specific python version you are running and is also different for each platform for obvious reasons. To determine your system’s site-packages directory, run this from the command line:

python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.