OS X does not use the latest version of NumPY

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.

+1
source share
2 answers

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). :)

0
source

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.

0
source

All Articles