gpt4 book ai didi

使用 pip 安装时 Python 包散列不匹配

转载 作者:太空狗 更新时间:2023-10-29 17:26:08 27 4
gpt4 key购买 nike

我正在使用 pip 安装我所有的 python 包,但出现如下跟踪所示的错误。问题是什么,我该如何解决?

usr@comp:~$ pip install flask
Collecting flask
Using cached Flask-0.11.1-py2.py3-none-any.whl
Collecting itsdangerous>=0.21 (from flask)
Using cached itsdangerous-0.24.tar.gz
Collecting click>=2.0 (from flask)
Using cached click-6.6.tar.gz
Collecting Werkzeug>=0.7 (from flask)
Using cached Werkzeug-0.11.11-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in /usr/lib/python2.7/dist-packages (from flask)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/lib/python2.7/dist-packages (from Jinja2>=2.4->flask)
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.
Werkzeug>=0.7 from https://pypi.python.org/packages/a9/5e/41f791a3f380ec50f2c4c3ef1399d9ffce6b4fe9a7f305222f014cf4fe83/Werkzeug-0.11.11-py2.py3-none-any.whl#md5=c63a21eedce9504d223ed89358c4bdc9 (from flask):
Expected md5 c63a21eedce9504d223ed89358c4bdc9
Got 13a168aafcc43354b6c79ef44bb0dc71

最佳答案

2013 年有一个类似的问题 ( Why does pip fail with bad md5 hash for package? ),我尝试过的对我有用的解决方案是这样的:

sudo pip install --no-cache-dir flask

由 attolee 提供

关于使用 pip 安装时 Python 包散列不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40183108/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com