我想在我的虚拟环境中安装Django(它完全正常工作),但却出现了这么多错误。有人知道该怎么做吗
我刚刚在PowerShell中键入了以下内容:
pipenv install django
得到这个:
Error: An error occurred while installing django!
Error text: Collecting django
Using cached Django-3.1.7-py3-none-any.whl (7.8 MB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM Pipfile.lock!. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
django from https://files.pythonhosted.org/packages/b8/6f/9a4415cc4fe9228e26ea53cf2005961799b2abb8da0411e519fdb74754fa/Django-3.1.7-py3-none-any.whl#sha256=baf099db36ad31f970775d0be5587cc58a6256a6771a44eb795b554d45f211b8 (from -r c:\users\vojtěch\appdata\local\temp\pipenv-e9otm_0m-requirements\pipenv-sj4h6g3_-requirement.txt (line 1)):
Expected sha256 baf099db36ad31f970775d0be5587cc58a6256a6771a44eb795b554d45f211b8
Got 764ad5e659cd3a7740b314806b39c67501c6136a21d23652515df3bfb4023d76
看起来您原来的下载可能失败了,pip正在使用缓存的下载,而不是获取新的下载。请重试
pipenv lock clear
,然后重试pipenv install django
相关问题 更多 >
编程相关推荐