Reputation: 51
I saw several posts regarding this issue, I tried almost all solutions but end up with the same error. I am trying to install numpy with pip 20.2.4. I got this below error message.
Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
I tried all the below commands but I am running out of ideas:
pip install --upgrade pip setuptools wheel
sudo pip install numpy --no-binary :all:
I always get the same message:
Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
Do you have other ideas to solve this issue? Thank you!
Upvotes: 5
Views: 1137
Reputation: 868
Here is a similar error of what I think you got.
I've solved it by installing the "Build Tools para Visual Studio 2019" and installing the section of desktop C++ compiler.
Go to Microsoft Studio Downloads and search down in section "All Downloads" > "Tools for Visual Studio 2019".
Download "Build Tools para Visual Studio 2019".
Install C++ compiler package (Elevated privileges are required).
Retry pip instalation pip install numpy
Enjoy.
Upvotes: 1