Trying to update NumPY by running pip install -U numpy , which gives "The requirement is already updated: numpy in / Library / Python / 2.7 / site-packages". Then checking the version with import numpy and numpy.version.version gives "1.6.2" (old version). Python imports numpy through the path '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy'. Please help me here.
pip install -U numpy
import numpy
numpy.version.version
The new version of NumPY will install (via pip) in the system path where Python is not recognized. To solve this problem, I ran pip install --user numpy==1.7.1 to indicate that I want NumPY version 1.7.1 in my Python path (user). :)
pip install --user numpy==1.7.1
You can remove the old version of numpy from
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy
.Just remove the numpy package and try importing numpy from the python shell.