[Pythonmac-SIG] Leopard + Numpy + Scipy: Path Issues Remain
newbie73
luis.cota at avmltd.com
Wed Jan 9 13:05:45 CET 2008
I've been reading about the python path issues with Leopard and have tried
the different methods outlined for addressing this problem with no good
result. Currently I am using a combination of .pth files and a modification
to my ~/.profile. One nagging problem is that SUDO commands do not maintain
these settings. When I install wxPython, these go into the /System folder,
*not* my /Library/Python folder. Also, when installing scipy,
numpy.distutils.core cannot be found.
sudo python scipy_dir/setup.py install
I've installed numpy 1.0.4 and this is placed in
/Library/Python/2.5/site-packages. I've also installed the MacPython from
python.org. When running python from a Terminal window, the correct version
of numpy gets loaded (1.0.4). However, as has been documented before, sudo
overrides these settings, so when I attempt to install scipy, the following
error shows up:
Traceback (most recent call last):
File "setup.py", line 55, in <module>
setup_package()
File "setup.py", line 29, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
Has anyone found a way around this?
Just for good measure, I've included my current sys.path (after a sudo
call):
['/code/libs/scipy-0.6.0',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages',
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode']
--
View this message in context: http://www.nabble.com/Leopard-%2B-Numpy-%2B-Scipy%3A-Path-Issues-Remain-tp14710492p14710492.html
Sent from the Python - pythonmac-sig mailing list archive at Nabble.com.
More information about the Pythonmac-SIG
mailing list