ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly python python

ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly


I had the same issue with opencv-python. What worked for me was updating pip as:

pip3 install --upgrade pip

Note: I am using docker on Linux.


I had the same issue. I resolved this issue after run below command

pip install --upgrade pip setuptools wheel


My problem was not with scipy, but with xmlsec. The error message was almost the same:

ERROR: Could not build wheels for xmlsec which use PEP 517 and cannot be installed directly

I needed this library, because it was dependency for python3-saml. From the documentation I read that they first install these packages:

sudo apt-get install libxml2-dev libxmlsec1-dev

After doing this the installation of python3-saml worked for me.

pip3 -Vpip 20.2.3python -VPython 3.8.0b3

Probably the answer for other libraries is different, but they all need some package in order to be build, and you should find what is this package for you.