0

我有一个Pipenv看起来像这样的文件

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
antlr4-python3-runtime = "4.8"
numpy = "1.19.3"
...

但是,当我通过运行创建环境时,会安装pipenv install版本antlr4-python3-runtime==4.9.2和版本。numpy==1.21.2如果我通过Pipfile以下方式修改:

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
antlr4-python3-runtime = "==4.8"
numpy = "==1.19.3"
...

然后它会安装正确的版本。"4.8"我对使用vs指定版本时会发生什么感到有些困惑"==4.8",因为前者似乎不起作用。前者与根本不指定任何版本有何不同?

4

0 回答 0