<p>How do I find the location of my <code>site-packages</code> directory?</p>

A solution that:
outside of virtualenv - provides the path of
global
site-packages,
insidue a virtualenv - provides the
virtualenv's
site-packages
...is this one-liner:
```
```
python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
```
```
Formatted for readability (rather than use as a one-liner), that looks like the following:
```
```
from distutils.sysconfig import get_python_lib
print(get_python_lib())
```
```
Source:
an very old version of
"How to Install Django" documentation
(though this is useful to more than just Django installation)