question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Package 'pyrsistent' requires a different Python: 2.7.8 not in '>=3.5'

See original GitHub issue

Hello,

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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

16reactions
mmerrill3commented, Sep 29, 2020

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

12reactions
ThiefMastercommented, Sep 9, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Package requires a different Python: 2.7.17 not in '>=3.6.1 ...
The issue was that I have both Python2.7 and 3 installed. And my pre-commit was installed was using Python 2.7 as the default....
Read more >
Package 'stomp.py' requires a different Python: 2.7.12 not in ...
The error is rather clear. The package you are trying to install only supports Python 3.6+. Your options are either to install newer...
Read more >
Package 'pyrsistent' requires a different Python: 2.7.5 not in ...
ERROR : Package 'imageio' requires a different Python: 2.7.13 not in '>=3.5' 执行pip install imageio=2.6.1 可以安装成功。 centos7&&ubuntu搭建 ...
Read more >
Deployment container when installing python dependency ...
pip install awsebcli -q --upgrade pyrsistent requires Python '>=3.5' but the running Python is 2.7.13 ERROR: Job failed: exit code 1.
Read more >
Installing Python Package Fails With Package 'Example ...
Pyrsistent is influenced by persistent data structures such as those ... ERROR: Package 'pyrsistent' requires a different Python: 2.7.8 not in '>3.5' #208....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found