Pip 在 Pandas 上安装失败?

dmc*_*c94 6 python pip python-3.x pandas

当我尝试从requirements.txt 文件安装我的项目时,我运行pip install -r requirements.txt并在我的pandas 依赖项上失败。我不太确定为什么有人有任何建议?

点版本:

pip 20.0.2 from c:\users\name\appdata\local\programs\python\python35\lib\site-packages\pip (python 3.5)
Run Code Online (Sandbox Code Playgroud)

要求.txt:

numpy==1.18.2
 pandas==1.0.3
 python-dateutil==2.8.1
 pytz==2019.3
 six==1.14.0
Run Code Online (Sandbox Code Playgroud)

错误:

 ERROR: Could not find a version that satisfies the requirement pandas==1.0.3 (from -r requirements.txt (line 2)) (from versions: 0.1, 0.2b0, 0.2b1, 0.2, 0.3.0b0, 0.3.0b2, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.6.0, 0.6.1, 0.7.0rc1, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0rc1, 0.8.0rc2, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0rc1, 0.19.0, 0.19.1, 0.19.2, 0.20.0rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.21.0rc1, 0.21.0, 0.21.1, 0.22.0, 0.23.0rc2, 0.23.0, 0.23.1, 0.23.2, 0.23.3, 0.23.4, 0.24.0rc1, 0.24.0, 0.24.1, 0.24.2)
ERROR: No matching distribution found for pandas==1.0.3 (from -r requirements.txt (line 2))
Run Code Online (Sandbox Code Playgroud)

Cha*_*uad 0

我过去也曾发生过类似的事情。我通过卸载 pandas 然后重新安装解决了这个问题。也许你很久以前就安装了pandas,所以你的版本已经过时了。