close

[Solved] Building wheel for numpy (pyproject.toml)

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run my code but I am facing following error Building wheel for numpy (pyproject.toml) in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Building wheel for numpy (pyproject.toml) Error Occurs ?

I am trying to run my code but I am facing following error.

Building wheel for numpy (pyproject.toml) ... error
     ERROR: Command errored out with exit status 1:
...
...
...
setup.py:63: RuntimeWarning: NumPy 1.21.2 may not yet support Python 3.10.
    warnings.warn(
    Running from numpy source directory.
...
...
...
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": 
    https://visualstudio.microsoft.com/downloads/
...
...
...
  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

How To Solve Building wheel for numpy (pyproject.toml) Error ?

  1. How To Solve Building wheel for numpy (pyproject.toml) Error ?

    To Solve Building wheel for numpy (pyproject.toml) Might be Numpy Latest version is not support python latest version thats why you are facing this error. But temporary solution is to try the unofficial wheels. First of all download this whl file according to your system For 32-bit: numpy‑1.21.2+mkl‑cp310‑cp310‑win32.whl OR For 64-bit: numpy‑1.21.2+mkl‑cp310‑cp310‑win_amd64.whl Now just download one of them file and just install it with this command: pip install “<your file path>.whl” OR Just downgrade python version to Python 3.9. Now you can use numpy.

  2. Building wheel for numpy (pyproject.toml)

    To Solve Building wheel for numpy (pyproject.toml) Might be Numpy Latest version is not support python latest version thats why you are facing this error. But temporary solution is to try the unofficial wheels. First of all download this whl file according to your system For 32-bit: numpy‑1.21.2+mkl‑cp310‑cp310‑win32.whl OR For 64-bit: numpy‑1.21.2+mkl‑cp310‑cp310‑win_amd64.whl Now just download one of them file and just install it with this command: pip install “<your file path>.whl” OR Just downgrade python version to Python 3.9. Now you can use numpy.

Solution 1: try the unofficial wheels

Might be Numpy Latest version is not support python latest version thats why you are facing this error. But temporary solution is to try the unofficial wheels. First of all download this whl file according to your system

For 32-bit: numpy‑1.21.2+mkl‑cp310‑cp310‑win32.whl

For 64-bit: numpy‑1.21.2+mkl‑cp310‑cp310‑win_amd64.whl

Now just download one of them file and just install it with this command.

pip install "<your file path>.whl"

Solution 2: use Python 3.9

Just downgrade python version to Python 3.9. Now you can use numpy.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment