I have upgraded from Mountain Lion to Mavericks ande also updated Macports and its outdated packages. I have installed numpy 1.7, but the problem is the one used by python is still numpy 1.6. The following are some information about my system.
>> python -c 'import numpy; print numpy.__version__' gives
1.6.2
which shows the active numpy version is 1.6.2
>> port installed | grep numpy gives
py27-numpy @1.7.1_0 (active)
which shows the active numpy version is 1.7.1_0
>> port installed | grep python gives
gnome-doc-utils @0.20.10_0+python27 (active)
gtk-doc @1.18_0+python27 (active)
ipython_select @0.3_1 (active)
opencv @2.4.6.1_2+python27 (active)
py27-ipython @0.13.2_0+notebook+parallel+scientific
py27-ipython @1.1.0_0+scientific
py27-ipython @1.1.0_0+notebook+parallel+scientific (active)
py27-wxpython-3.0 @2.9.5.0_0 (active)
py27-wxpython-devel @2.9.4.0_0
python24 @2.4.6_10 (active)
python27 @2.7.5_0
python27 @2.7.5_1 (active)
python_select @0.3_2
python_select @0.3_3 (active)
swig-python @2.0.9_0
swig-python @2.0.10_0 (active)
xorg-libxcb @1.9.1_0+python27 (active)
xorg-xcb-proto @1.8_0+python27 (active)
which shows, the active python version is python27.
Also, port select python gives
Available versions for python:
none
python24
python25-apple
python26-apple
python27
python27-apple (active)
numpy.__file__? You're probably picking up the system one. Doeswhich pythontells you it's in/opt/local?which pythonorls -l $(which python)to check for links. Also, please typeport select python, to see which python port is telling the system to use.numpy.__file__=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/__init__.pycandwhich pythongives/opt/local/bin/python