'ERROR: Could not find a version that satisfies the requirement pyhash
I am trying to install a package pyhash, using pip install pyhash and it gives me the following error:
ERROR: Could not find a version that satisfies the requirement pyhash (from versions: 0.6.2, 0.6.3, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.9.0, 0.9.1, 0.9.2, 0.9.3) ERROR: No matching distribution found for pyhash
What does this error mean? By "version" do they mean "python version"? If so, how can I check which python versions pyhash is compatible with?
Solution 1:[1]
I tried here with python3 and python2 and it installed just fine. A lot of the times this is just a problem with your pip version. Ensure that it's updated with:
python -m pip install --upgrade pip
And try again.
Edit:
Apparently pip version 21.3.1 uses setuptools>=58 and setuptools>=58 breaks support for use_2to3:
use_2to3 it's a package used by pyhash to convert it's code.
So the better solution here I think would be to downgrade pip to version 21.2.4 with:
pip install --upgrade pip==21.2.4
Solution 2:[2]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 |
