Quick way to locate the Python site-packages directory:
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
Most likely here on Mac OS X:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
March 16th, 2008 | Python
Quick way to locate the Python site-packages directory:
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
Most likely here on Mac OS X:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
1 comment so far ↓
Great tip.
Thanks!
Leave a Comment