我收到“错误:在 --require-hashes 模式下,当我执行“pip install -r requests”时,所有要求的版本都必须用 == 固定

Wen*_*hun 7 pip requirements.txt python-3.6

当我尝试使用“pip install -rrequirements.txt”将 python 3.6.8 的一些需求安装到我的文件夹时,我在 cmd 行底部收到以下消息

ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
    importlib-metadata from https://files.pythonhosted.org/packages/71/c2/cb1855f0b2a0ae9ccc9b69f150a7aebd4a8d815bd951e74621c4154c52a8/importlib_metadata-4.8.1-py3-none-any.whl#sha256=b618b6d2d5ffa2f16add5697cf57a46c76a56229b0ed1c438322e4e95645bd15 (from backports.entry-points-selectable==1.1.0->-r requirements-38.txt (line 7))
Run Code Online (Sandbox Code Playgroud)

我已经将我的 pip 版本更新到 21.2.4,有谁知道可能会导致什么以及如何解决这个问题?欣赏!!

小智 0

将 pip 版本从 21 更改为 20.2.4 后工作正常