When you already have an older version of NumPy, use this:

pip install numpy --upgrade

If it still doesn't work, try:

pip install numpy --upgrade --ignore-installed
Answer from Rebecca on Stack Overflow

When you already have an older version of NumPy, use this:

pip install numpy --upgrade

If it still doesn't work, try:

pip install numpy --upgrade --ignore-installed
Answer from Rebecca on Stack Overflow
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
Upgrading NumPy to latest version - Raspberry Pi Forums
# install dependencies needed to compile numpy from source sudo apt update sudo apt install cmake python3.11-venv python-dev-is-python3 libopenblas-dev # create virtual env cd ~ mkdir test cd test python -m venv venv source venv/bin/activate # install numpy pip install numpy Don't forget to ...
Discussions

pi 3b+ - Upgrading to Latest Numpy Version on Raspberry Pi 3 - Raspberry Pi Stack Exchange
This is the Numpy provided by the image, and NOT the numpy I try to install from pip (version 1.12.1 to be exact). When I try to upgrade to the latest version however (version 1.15.4), using "pip3 install numpy", it seems to install ok, but when I go to import it, I get the following: More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
How can I upgrade Numpy in just one version of Python? - Stack Overflow
Every time I write "install --upgrade numpy", I am told that Numpy is already up to date in C:Python37. How can I update Numpy in C:Python27 rather than 37? Any help would be much appreciated. ... The version of pip is tied to a specific Python installation. So pip on my computer works for Python 3.7, while pip2 is for Python 2.7. Are you sure you're using the correct version of pip. ... @bnaecker I am using pip3... More on stackoverflow.com
🌐 stackoverflow.com
python - Can't install numpy after a pip upgrade - Stack Overflow
For some reason, after pip is upgraded to version 19.0, I'm not able to install the most recent version of numpy (it still perfectly works with pip version 18.1). When I run pip install numpy --no- More on stackoverflow.com
🌐 stackoverflow.com
Updating to NumPy 1.16.0? Make sure you uninstall previous versions first and upgrade pip
Is this also an issue if one uses conda? More on reddit.com
🌐 r/Python
14
69
January 17, 2019
🌐
Delft Stack
delftstack.com › home › howto › numpy › python upgrade numpy
How to Upgrade Python NumPy | Delft Stack
February 26, 2025 - Learn how to upgrade Python NumPy easily using pip and pip3 package managers. This comprehensive guide covers step-by-step instructions for both Python 2 and Python 3, along with clear code examples and explanations. Keep your NumPy installation up to date for optimal performance and access to the latest features.
🌐
PyPI
pypi.org › project › numpy
numpy · PyPI
pip install numpy Copy PIP instructions · Released: Jun 21, 2026
      » pip install numpy
    
Published   Jun 21, 2026
Version   2.5.0
🌐
NumPy
numpy.org › install
NumPy - Installing NumPy
Tip This page assumes you are comfortable using a terminal and are familiar with package managers. The only prerequisite for installing NumPy is Python itself. If you don’t have Python yet and want the simplest way to get started, we recommend you use the Anaconda Distribution - it includes ...
Find elsewhere
🌐
iO Flood
ioflood.com › blog › pip-update-package
PIP Update Packages in Python | Practical Commands
August 12, 2024 - python3 -m venv myenv source myenv/bin/activate pip install --upgrade numpy # Output: # Successfully installed numpy-x.y.z
🌐
Scaler
scaler.com › home › topics › numpy › how to install numpy in python?
How To Install NumPy In Python? - Scaler Topics
August 24, 2023 - Another way is to directly install pip first on Ubuntu and then install NumPy by performing the following steps: ... Type command pip3 install numpy for installing python3, use pip install numpy for installing python2.
🌐
Binarystudy
binarystudy.com › 2022 › 12 › how-to-install-specific-version-of-Numpy-with-PIP.html
How to install specific version of Numpy with PIP?
March 17, 2024 - # uninstalling the existing version and installing version 1.23.5 of Numpy pip3 uninstall numpy pip3 install numpy==1.23.5
🌐
IncludeHelp
includehelp.com › python › how-to-upgrade-numpy.aspx
Python - How to upgrade NumPy?
January 16, 2023 - Step 3: You will see that your system will start upgrading the version and NumPy automatically installs the upgraded version.
🌐
NumPy
numpy.org › doc › 2.1 › user › troubleshooting-importerror.html
Troubleshooting — NumPy v2.1 Manual
pip3 uninstall numpy # remove previously installed version apt install python3-numpy
🌐
Reddit
reddit.com › r/python › updating to numpy 1.16.0? make sure you uninstall previous versions first and upgrade pip
r/Python on Reddit: Updating to NumPy 1.16.0? Make sure you uninstall previous versions first and upgrade pip
January 17, 2019 -

At NumPy we have been getting reports of failures after upgrading to the recently released 1.16.0 version. One common thread is they see an AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__' on import. This is caused by having old versions of numpy mixed in with the new.

TL;DR: you should run pip uninstall numpy multiple times until it cleans up all the old versions before installing 1.16 and above, and you should also upgrade pip to the latest version if you can since it does a better job cleaning-before-installing. For more info read this issue and this PR to detect the situation and give a better error message. We have not yet figured out a way to fix the problem, other than giving a clearer error message.

If you are seeing this in your CI, two things: Thanks for testing and reporting issues, it helps us iron out the bugs as we try to improve NumPy. And secondly you too should upgrade pip, and uninstall old versions of numpy before installing the new.

Keep those issue reports coming on our tracker), we don't know it's broken if you don't tell us.

🌐
iO Flood
ioflood.com › blog › pip-upgrade
Pip Upgrade | Guide to Updating Python Packages
January 30, 2024 - Here’s a simple example of using pip to install a package: pip install numpy # Output: # Collecting numpy # Downloading numpy-1.21.2-cp39-cp39-win_amd64.whl (14.0 MB) # Installing collected packages: numpy # Successfully installed numpy-1.21.2
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install numpy
How to Install NumPy (Windows, Linux and MacOS)
December 12, 2025 - Install NumPy (Numerical Python) on your system using PIP, Conda, or build from source. Follow our step-by-step instructions to install NumPy!
🌐
DataCamp
datacamp.com › doc › numpy › install
Installing NumPy
Keep Updated: Regularly update NumPy to benefit from performance improvements and bug fixes using pip install --upgrade numpy.
🌐
NumPy
numpy.org › doc › stable › user › troubleshooting-importerror.html
Troubleshooting — NumPy v2.5 Manual
If your NumPy version is old, you can try upgrading it for example with pip install numpy --upgrade.
🌐
Medium
medium.com › @heyamit10 › how-to-check-and-upgrade-numpy-version-adb5f41db0d5
How to Check and Upgrade NumPy Version | by Hey Amit | Medium
March 6, 2025 - If Jupyter is running from an unexpected environment, you might need to install NumPy in that specific environment: ... 🔹 Always check your dependencies before upgrading NumPy.