Thanks... On Wed, Oct 21, 2009 at 11:41 AM, David Cournapeau <[email protected]> wrote: > Robin wrote: >> >> Thanks - that looks ideal. I take it $HOME/.local is searched first so >> numpy will be used fromt here in preference to the system numpy. >> > > Yes, unless framework-enabled python does something 'fishy' (I think > framework vs convention python have different rules w.r.t. sys.path). As > always, in doubt, you should check with numpy.__file__ which one is loaded.
It seems it does... the built in numpy which is in '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', comes before $HOME/.local in sys.path so I think system numpy will always be picked up over my own installed version. robin-mbp:~ robince$ /usr/bin/python2.6 -c "import sys; print sys.path" ['', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Users/robince/.local/lib/python2.6/site-packages', '/Library/Python/2.6/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode'] So I guess virtualenv or macports? Cheers Robin _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
