How to update to the latest numpy and scipy on Ubuntu 14.04LTS
On my Ubuntu 14.04LTS, for python3, I have
>>> import numpy
>>> import scipy
>>> numpy.__version__
'1.8.2'
>>> scipy.__version__
'0.13.3'
I want to update numpy
and scipy
to the most recent version 1.9.2 and 0.16.0, I tried with the following commands
sudo pip3 install --upgrade numpy
sudo pip3 install --upgrade scipy
both commands ran successfully, but the version numbers didn't change to 1.9.2 and 0.16.0 at all for both python packages (after restarting the computer). Anyone knows how to update to the most version? Thank you very much!!
Solution 1:
I found @David Foerster's comment quite helpful. I also had python3-numpy
and python3-scipy
installed, which was overriding my later install, so I simply issued:
sudo apt-get remove python3-numpy
And then all the proper versions were already there, as revealed by
pip3 show numpy
Solution 2:
I had the same problem: sudo pip install --upgrade <package>
ran correctly but the packages didn't actually get upgraded.
I just tried
sudo easy_install --upgrade numpy
sudo easy_install --upgrade scipy
sudo easy_install-3.4 --upgrade numpy
sudo easy_install-3.4 --upgrade scipy
and it worked: I now have numpy 1.11.0b3 and scipy 0.17.0 in both python and python3.