[Python] pip install fails due to hash mismatch

Discussão em 'Python' iniciado por Stack, Maio 12, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install robot-framework package using below command:- pip download robotframework==6.1 --no-cache-dir

    But I get error:-

    pip download robotframework==6.1 --no-cache-dir
    Collecting robotframework==6.1
    Downloading robotframework-6.1-py3-none-any.whl (15 kB)
    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.
    robotframework==6.1 from https://files.pythonhosted.org/packages/11/ff/3105ff09e62c980e67a5b6974c8ac9577b4c3bacbc10a90e6b3e40cfcbd1/robotframework-6.1-py3-none-any.whl#sha256=46b04648547eab6433ce107c4b40757aa8bea1e47bd86af9c0cff5546dac767e:
    Expected sha256 46b04648547eab6433ce107c4b40757aa8bea1e47bd86af9c0cff5546dac767e
    Got f41e296c6972ddd0e47b0361217f686104aa059edc28d5f39e0596e834e2dd5c


    WARNING: You are using pip version 22.3; however, version 25.1.1 is available. You should consider upgrading via the 'C:\Program Files\Python310\python.exe -m pip install --upgrade pip' command.

    even flag --no-cache-dir does not help. Python version I am using- 3.10

    Tried upgrading pip version and purge command too:-

    python.exe -m pip install --upgrade pip
    Requirement already satisfied: pip in c:\program files\python310\lib\site-packages (22.0.4)
    Collecting pip
    Downloading pip-25.1.1-py3-none-any.whl.metadata (3.6 kB)
    Downloading pip-25.1.1-py3-none-any.whl (1.8 MB)
    ---------------------------------------- 1.8/1.8 MB 500.2 kB/s eta 0:00:00
    Installing collected packages: pip
    Attempting uninstall: pip
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
    Successfully uninstalled pip-22.0.4
    Successfully installed pip-25.1.1



    pip download robotframework==6.1 --no-cache-dir
    Collecting robotframework==6.1
    Downloading robotframework-6.1-py3-none-any.whl.metadata (7.5 kB)
    Downloading robotframework-6.1-py3-none-any.whl (15 kB)
    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.
    unknown package:
    Expected sha256 46b04648547eab6433ce107c4b40757aa8bea1e47bd86af9c0cff5546dac767e
    Got add115f339596b8484979f242c29f086884717ba6602725c9bcfa91d45f9e596

    Continue reading...

Compartilhe esta Página