add new modules?

Robert Kern rkern at
Fri Jun 17 21:07:43 CEST 2005

Dennis Clark wrote:
> This is a total newb question, you have been warned...
> I've been all over the site and googled, but I've not
> found just how to add new modules.  I've tried setting PYTHONPATH,
> I've tried putting the new module directories into the site-packages
> directory, I've tried creating the .pth files, I've even done all 
> three of these things at the same time and still my python script
> refuses to import.  What is the cannonical way to add new modules
> to python?  I am running on OS X 10.4 (Macintosh obviously) on basically
> freeBSD, os I'm doing UNIX type stuff at the console.

If you are using the Apple-supplied Python 2.3.5, put the modules in 
/Library/Python/2.3/site-packages/ . If you are using Bob Ippolito's 
Python 2.4.1, then it's 

Robert Kern
rkern at

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the Python-list mailing list