ERROR: Package 'pyrsistent' requires a different Python: 2.7.8 not in '>=3.5'
See original GitHub issueHello,
The latest version of the pyrsistent dropped Python 2 support after one of the contributors added python_requires='>=3.5'
in setup.py.
pip install pyrsistent Collecting pyrsistent Downloading https://files.pythonhosted.org/packages/83/14/6d02fad9caeb3903f06f9442e57789ca2fbb3cf7daf66d4de3aa4dc867dc/pyrsistent-0.17.1.tar.gz (106kB) 100% |████████████████████████████████| 112kB 604kB/s pyrsistent requires Python '>=3.5' but the running Python is 2.7.17
The fix added to declare Python 2 support drop seems to be ok but I think there is a problem with the sdist. I mean, what version of setuptools did you used to create the sdist? Because supporting python_requires
requires setuptools>=24.2.0 and pip>=9.0.0 to benefit from it
https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:24 (5 by maintainers)
Top GitHub Comments
I managed to manually install 0.16.1 to get by the issue on buster 10.6, that has pip version 18.1-5. After manually installing 0.16.1, my transitive dependency error when installing pyjson was resolved.
sudo pip install pyrsistent==0.16.1
If you look here you see that the package does not include the metadata. Compare it with e.g. this one where it says “Requires: Python >=3.7” on the side. This is the same metadata that is also used during installs.
Try
pip install -U pip setuptools twine
to make sure all those things are recent enough.