Hakk
Hakk

Reputation: 51

Could not build wheels for numpy which use PEP 517 and cannot be installed directly

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

Answers (1)

Wolphyrus Imperius
Wolphyrus Imperius

Reputation: 868

Here is a similar error of what I think you got. enter image description here

I've solved it by installing the "Build Tools para Visual Studio 2019" and installing the section of desktop C++ compiler.

Steps

  1. Go to Microsoft Studio Downloads and search down in section "All Downloads" > "Tools for Visual Studio 2019".

  2. Download "Build Tools para Visual Studio 2019".

  3. Install C++ compiler package (Elevated privileges are required).

  4. Retry pip instalation pip install numpy

  5. Enjoy.

Upvotes: 1

Related Questions