Using Python 3.6, a command like pip3 install scs fails because scssetup_requires is always populated by easy_install, installing numpy/1.20 which is incompatible with Python3.6.
The proposed solution (at https://github.com/pypa/pip/issues/9443) is that this project opts into PEP 517. A pyproject.toml file has to be created, but maybe there are other required changes. I don't have the time to check how to do it, so I leave it as an open issue.
This problem can be reproduced running docker build with the following Dockerfile (which uses an updated pip):
Using Python 3.6, a command like
pip3 install scs
fails becausescs
setup_requires
is always populated byeasy_install
, installing numpy/1.20 which is incompatible with Python3.6.The proposed solution (at https://github.com/pypa/pip/issues/9443) is that this project opts into PEP 517. A pyproject.toml file has to be created, but maybe there are other required changes. I don't have the time to check how to do it, so I leave it as an open issue.
This problem can be reproduced running
docker build
with the following Dockerfile (which uses an updated pip):gives
RuntimeError: Python version >= 3.7 required.
A workaround is installing a lower version of Numpy first, in a previous pip install command (
pip3 install numpy==1.15.4 scs
still fails). This works: