Location of global libraries for Python on Mac? Location of global libraries for Python on Mac? python python

Location of global libraries for Python on Mac?


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

import sysprint(sys.path)


A simple method I use is to ask a module where it is:

import osprint(os.__file__)


/Library/Python/2.6/site-packages/ is indeed the right place (assuming it's Mac OS 10.6 "Snow Leopard" - you didn't mention which).

As @diatoid mentioned, check your system path (and make sure you're actually using Python 2.6 by running python -V).