Skip to content
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

Issue with installing package using PIP #11348

Closed
1 task done
monika2082 opened this issue Aug 4, 2022 · 4 comments
Closed
1 task done

Issue with installing package using PIP #11348

monika2082 opened this issue Aug 4, 2022 · 4 comments
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@monika2082
Copy link

Description

Hi , we are seeing issue installing packages using PIP command. some packages like keras, pandas, nltk we are able to install successfully whereas for packages like scipy, numpy, teradatasql we are getting error similar to below. Can you assist with what could cause the issue? I tried using pip cache purge as well as running PIP command with --no-cache-dir but still seeing the issue.

Expected behavior

No response

pip version

21.2.2

Python version

3.6

OS

RHEL 7.9

How to Reproduce

create a virtual conda environment using command
conda create -n test3 python=3.6
use pip to install package
pip install --cert /opt/cloudera/security/x509/cert.pem --trusted-host pypi.python.org --no-cache-dir scipy

Output

(test3) [ab63996@sl01plpchd023 ~]$ pip install --cert /opt/cloudera/security/x509/cert.pem --trusted-host pypi.python.org --no-cache-dir scipy
Collecting scipy
  Downloading scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl (25.9 MB)
     |████████████████████████████████| 25.9 MB 13.0 MB/s
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    scipy from https://files.pythonhosted.org/packages/c8/89/63171228d5ced148f5ced50305c89e8576ffc695a90b58fe5bb602b910c2/scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl#sha256=368c0f69f93186309e1b4beb8e26d51dd6f5010b79264c0f1e9ca00cd92ea8c9:
        Expected sha256 368c0f69f93186309e1b4beb8e26d51dd6f5010b79264c0f1e9ca00cd92ea8c9
             Got        891970492afcc35b02b10cfd8a50a6538371e182b6d9b80cbd1cec2718aad75e

Code of Conduct

@monika2082 monika2082 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Aug 4, 2022
@sbidoul
Copy link
Member

sbidoul commented Aug 4, 2022

A possible cause is that scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl was corrupted or modified during download.

@monika2082
Copy link
Author

Any idea on how it could get corrupted . Some packages like pandas, scikit-learn, ntlk, flask are installing fine . Whereas for package like scipy,numpy, teradatassql, cryptography if is failing with same error. Not sure what is causing the issue

@pastephens
Copy link

pastephens commented Feb 1, 2023

/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
WARNING: The directory '/Users/<user>/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: pip in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages (21.2.4)
Collecting pip
  Downloading pip-23.0-py3-none-any.whl (2.1 MB)

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    pip from https://files.pythonhosted.org/packages/ab/43/508c403c38eeaa5fc86516eb13bb470ce77601b6d2bbcdb16e26328d0a15/pip-23.0-py3-none-any.whl#sha256=b5f88adff801f5ef052bcdef3daa31b55eb67b0fccd6d0106c206fa248e0463c:
        Expected sha256 b5f88adff801f5ef052bcdef3daa31b55eb67b0fccd6d0106c206fa248e0463c
             Got        e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

@uranusjr
Copy link
Member

Duplicate of #11153

@uranusjr uranusjr marked this as a duplicate of #11153 Jul 23, 2023
@uranusjr uranusjr closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2023
@uranusjr uranusjr added resolution: duplicate Duplicate of an existing issue/PR and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Jul 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

4 participants