I upgraded SciPy with pip, but when I called it, the old version was used. I just did it according to the reference site, but I have to do it on various machines, so I will reorganize it.
First, check the current version.
$ python -c "import scipy; print scipy.version.full_version"
0.11.0
Upgrade SciPy normally with pip.
$ sudo pip install scipy --upgrade
[~/Downloads/KDD_2012_Track2-master/modeling]
Downloading/unpacking scipy from https://pypi.python.org/packages/cp27/s/scipy/scipy-0.14.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=d3728a6d43c326500
3db3781cbd4660f
Downloading scipy-0.14.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl (26.7MB): 26.7MB downloaded
Installing collected packages: scipy
Found existing installation: scipy 0.11.0
Uninstalling scipy:
Successfully uninstalled scipy
Successfully installed scipy
Cleaning up...
Let's check the version.
$ pip show scipy
---
Name: scipy
Version: 0.14.0
Location: /Library/Python/2.7/site-packages
Requires:
It certainly seems to have been upgraded. Let's call it from Python and check the version.
$ python -c "import scipy; print scipy.version.full_version"
0.11.0
This has become 0.11.0
for some reason.
I heard that an older version has been detected, so I deleted it.
$ sudo sudo rm -rf /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy
If you check in this state
$ python -c "import scipy; print scipy.version.full_version"
0.14.0
It has been successfully upgraded.
Recommended Posts