我有Django 2.2.7,现在我想安装Django 3.0.2。我读到我需要运行命令pip install -U Django
来更新它,但是当我尝试它时会显示此错误消息
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.
Django from https://files.pythonhosted.org/packages/55/d1/8ade70e65fa157e1903fe4078305ca53b6819ab212d9fbbe5755afc8ea2e/Django-3.0.2-py3-none-any.whl#sha256=4f2c913303be4f874015993420bf0bd8fd2097a9c88e6b49c6a92f9bdd3fb13a:
Expected sha256 4f2c913303be4f874015993420bf0bd8fd2097a9c88e6b49c6a92f9bdd3fb13a
Got f97dfd0d593c3c78e81ca2f4fd095a21cd0a30752e7b8754294bf1d42541a218
我该怎么办?
更新软件包的最简单方法:删除并重新安装。
$ pip uninstall Django
$ pip install Django==3.0.2