1👍
Go into the terminal and try this command…
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
This should inform you as to your site-packages location.
0👍
say if you want to see where a package — say PIL — is installed, get to a python shell, type:
>>> import PIL
>>> help(PIL)
The help file looks like:
Help on package PIL:
NAME
PIL
FILE
/usr/lib/python2.7/dist-packages/PIL/__init__.py
...
now I know that PIL is in /usr/lib/python2.7/dist-packages/PIL/
alternatively,
>>> print PIL.__file__
/usr/lib/python2.7/dist-packages/PIL/__init__.pyc
- [Answered ]-Syncdb error using mysql
- [Answered ]-Does Django pick template changes when DEBUG=False? Yes, but HOW?
Source:stackexchange.com