Error while installing numpy version 1.19.4


When I try installing numpy version 1.19.4 I get this :

note: This error originates from a subprocess, and is likely not a problem with pip.
 ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

System Info:
MacBook Pro 15-inch 2017
macOS 13.1
Python 3.9.6

I was expecting for numpy to install normally

>Solution :

It looks like you are having an issue installing the numpy package with pip. This error message is usually displayed when there is a problem building the wheel for the numpy package.

Here are a few things you can try to fix this issue:

Make sure that you have the necessary build tools and libraries installed. You will need the following packages:
Xcode Command Line Tools (for macOS)
GCC and G++ (for Linux)
Visual Studio Build Tools (for Windows)
If you have the necessary build tools and libraries installed and are still encountering this issue, try installing numpy using a different version of Python. You can check the version of Python that you have installed by running the following command:
python -V

If you are using a version of Python that is not compatible with numpy, try installing a different version of Python and then install numpy using that version.

If the issue persists, try installing numpy using a package manager other than pip. For example, you can try using conda or apt-get.

Leave a ReplyCancel reply