[Numpy-discussion] import problem

Alan G Isaac aisaac at american.edu
Tue Nov 22 06:05:07 CST 2005


On Tue, 22 Nov 2005, Joost van Evert apparently wrote: 
> does anyone understand importing modules? I want to import a new version 
> of Numeric(24.2) that was installed in my home directory, but the old 
> one in /usr/lib/python/site-packages gets imported. 

> The command "python setup.py --install=~" was used to install. And 
> ~/lib/python is the first item in my PYTHONPATH variable. So the 
> contents of sys.path is ['','~/lib/python', ...] 

> Does anyone know any means to get the new version imported? Except from 
> deleting the old version of course;) 

http://docs.python.org/tut/node8.html
section 6.1.1

hth,
Alan Isaac








More information about the Numpy-discussion mailing list