skip to Main Content

I’m in ubuntu 20.04, been trying to install a more recent version of numpy after realising I had 1.24.4 but whenever I try to update it with

pip3 install --upgrade numpy

It keeps giving me this message

Requirement already satisfied: numpy in /home/myusername/Desktop/Vision_artificial/VAA/lib/python3.8/site-packages (1.24.4)

Now granted this happens in a virtual enviroment but it also happens whenever I try to update it outside of the VENV so I don’t know what else to do

2

Answers


  1. You are using Python 3.8. NumPy 1.24 is the last version that supports it so pip can only upgrade your NumPy up to 1.24.4 but not higher.

    For higher versions of NumPy you need higher versions of Python.

    From https://numpy.org/news/ : For NumPy 1.25 you need Python 3.9-3.11, for NumPy 1.26 and 2.0 you need Python 3.9-3.12, for NumPy 2.1 you need Python 3.10-3.13.

    Login or Signup to reply.
  2. To upgrade your version of NumPy you need to upgrade your Python as well.

    You can find which version you need here:
    https://numpy.org/news/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search