+5 votes
in Programming Languages by (73.8k points)
I have an old version of Numpy and Scipy installed on my Ubuntu machine. How can I upgrade them to their latest version?

1 Answer

+2 votes
by (349k points)
selected by
 
Best answer

To upgrade Numpy and Scipy on the Ubuntu machine, run the following commands on the terminal:

sudo pip install scipy --upgrade

sudo pip install numpy --upgrade

If the upgrade is successful, you will see the message: "successfully installed xxxx" on the terminal.

You can check their version from the Python command line:

>>> import numpy as np
>>> np.version.version
'1.21.2'
>>> import scipy
>>> scipy.version.version
'1.7.1'
 


...