ipython with macports
Claus
clausenator at gmail.com
Tue Mar 16 06:53:33 PDT 2010
Hi,
I just installed macports including python-26 and the packages numpy, scipy, matplotlib and pymc -- and ipython.
I'm running OS 10.6.2
Some things work really well
which python
returns
/opt/local/bin/python
I can start python.
I can run scripts from within TextMate, TextMate even knows automatically, to use the macports python version.
However, when I run
python
from within Terminal, and then try to
import numpy
(output at the bottom of this post)
python still wants to use my (still existing) fink version of numpy.
The same behaviour occurs for all all packages and also from within ipython.
How can I change this so that python (the macport python) uses the macport site-packages?
Thanks for your help,
Cheers,
Claus
In [1]: import numpy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/sw/lib/python2.6/site-packages/numpy/__init__.py in <module>()
128 return loader(*packages, **options)
129
--> 130 import add_newdocs
131 __all__ = ['add_newdocs']
132
/sw/lib/python2.6/site-packages/numpy/add_newdocs.py in <module>()
7 # core/fromnumeric.py, core/defmatrix.py up-to-date.
8
----> 9 from lib import add_newdoc
10
11 ###############################################################################
/sw/lib/python2.6/site-packages/numpy/lib/__init__.py in <module>()
2 from numpy.version import version as __version__
3
----> 4 from type_check import *
5 from index_tricks import *
6 from function_base import *
/sw/lib/python2.6/site-packages/numpy/lib/type_check.py in <module>()
6 'common_type']
7
----> 8 import numpy.core.numeric as _nx
9 from numpy.core.numeric import asarray, asanyarray, array, isnan, \
10 obj2sctype, zeros
/sw/lib/python2.6/site-packages/numpy/core/__init__.py in <module>()
3 from numpy.version import version as __version__
4
----> 5 import multiarray
6 import umath
7 import _internal # for freeze programs
ImportError: dlopen(/sw/lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:
/sw/lib/python2.6/site-packages/numpy/core/multiarray.so: mach-o, but wrong architecture
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100316/89908b6a/attachment.html>
More information about the macports-users
mailing list