安装 PTAN 时找不到 torch==1.3.0 的匹配发行版

No matching distribution found for torch==1.3.0 while installing PTAN

我尝试使用 pip 安装 PTAN 库

python -m pip install PTAN==0.6

但是显示错误

ERROR: Could not find a version that satisfies the requirement torch==1.3.0 (from ptan)
ERROR: No matching distribution found for torch==1.3.0

我可以通过运行安装:

python -m pip install PTAN

但后来我得到了旧版本。

如何正确安装当前版本的 PTAN?

我正在使用 Linux ubuntu 和 Python 3.8

ptan 0.6暂时坏了。问题是依赖项需要相同包的确切版本(torch 在这种情况下),pip 在卸载以前的版本时无法处理。

我试图找到其他包需要 torch 版本而不是 1.3.0 版本,但我找不到它,也许其他人可以找到它,但这并不重要不过对我们来说。

您最好的选择是安装 ptan 的旧版 version,它是 0.4 于 2020 年 1:st 七月发布的。

pip install ptan==0.4