Location of global libraries for Python on Mac?

michaltaberski picture michaltaberski · Apr 30, 2010 · Viewed 96.5k times · Source

I'm fighting with installation SIP for Python on Mac OS X. Finally after compilation and installation when I run console form folder of SIP (locally) I can import sipconfig, but when I`m in other folder I cant - there is no module called sipconfig.

My question is - Where is folder to which I have to copy modules if I want to have them available globally (like "import os"), or how I can check it, because location "/Library/Python/2.6/site-packages/" doesn`t work.

Answer

diatoid picture diatoid · Apr 30, 2010

Try checking your python's sys.path list with:

import sys
print(sys.path)