[Distutils] easy_install path

Michael Hearne mhearne at usgs.gov
Thu May 1 18:53:52 CEST 2008

I'm having a problem with easy_install and a library I just installed.

I have a Mac OS 10.5 (Leopard), and I used the SciPy SuperPack  
installer (http://macinscience.org/?page_id=6)  to install a whole  
bunch of scientific packages, including matplotlib.

I then used easy_install to install Basemap, which is a "toolkit"  
based on matplotlib.  The usual instructions for Basemap have the  
import statement like this:

from matplotlib.toolkits.basemap import Basemap

However, when I try this in Python, I get an ImportError.

This obviously has something to do with the path that Python uses to  
find libraries, and I found an easy_install.pth file that looks like  
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:];  
p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egg
insert = p+len(new)

Any clues as to what is going on, and how I can fix the problem?



Michael Hearne
mhearne at usgs.gov
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.

More information about the Distutils-SIG mailing list