October 23, 2024
Chicago 12, Melborne City, USA
python

How to upgrade NumPy in Ubuntu?


My OS is Ubuntu 22.04.4 LTS. The "pip list" command tells that I have the NumPy 1.21.5. But I need a newer version of the NumPy.

I am trying to install the NumPy package whith next command:

pip install --upgrade numpy=2.1.2

But here is an error:

<...>
Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)

../meson.bould:41:12: ERROR: python dependency not found

I find that I must install -dev package. So I do that:

sudo apt install python3-dev

…but the NumPy installation error is still there.

What shall I do to upgrade the NumPy?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video