-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Python packages hash not matching whilst installing using pip package fails hash check #12424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you saying that |
You are missing a lot of information necessary to reproduce this issue. As @agronholm says, something (possibly a config file or an environment variable) is directing pip to look at www.piwheels.org/simple. You need to tell us what that is. Also, the error refers to a requirements file but your command doesn't include one. Why is pip looking at a requirements file? Please reduce this issue to a reproducible example, with all of the necessary setup included in the instructions. |
I'm also having this issue, actually. I'll follow up if I learn anything poking around |
Perhaps you would like to give some details then? |
Hey, thank you for opening this issue @fti-sfuke, it helped me track down the problem: Raspberry Pi OS ships with an
I commented out the line and solved this. This is a bad default, in my opinion, especially for the ARM64 raspberry Pis. I'm more sympathetic for the case for this on 32-bit OSes. I'm going to see if I can ask the Rasberry Pi people to remove this for 64-bit. |
There is nothing actionable or fixable here. It is a known issue that pip will report an interrupted download as a hash failure, but that's already tracked as #11153. Otherwise, the hash failure really should be treated as if your distributions are unexpected and requiring verification. |
Description
The following requirements package fails to install
pip3 install boto3
With package fails hash check error
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE.
Expected behavior
boto3 packages must be installed with pip.
pip version
23.1.2
Python version
3.7
OS
Debian GNU/Linux 10 (buster)
How to Reproduce
Install boto3 package
root@buildhost:/mnt# pip3 install boto3
package fails, a hash check error occurred.
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: