【问题标题】:Pip install failure on Pandas?在 Pandas 上安装 Pip 失败?
【发布时间】:2020-07-07 18:11:42
【问题描述】:

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

pip 版本:

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

requirements.txt:

numpy==1.18.2
 pandas==1.0.3
 python-dateutil==2.8.1
 pytz==2019.3
 six==1.14.0

错误:

 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))

【问题讨论】:

  • 您使用的是最新版本的pip吗?
  • 是的,我在运行 pip install 之前运行了升级
  • 分享pip --version的输出
  • pip 20.0.2 from c:\users\name\appdata\local\programs\python\python35\lib\site-packages\pip (python 3.5)

标签: python python-3.x pandas pip


【解决方案1】:

类似的事情过去发生在我身上。我通过卸载熊猫然后重新安装来解决它。也许你很久以前就安装了 pandas,所以你的版本已经过时了。

【讨论】:

  • 投反对票的人应该说明原因!
【解决方案2】:

pandas 1.0.0 需要 Python 3.6+。支持 Python 3.5 的最后一个版本是 0.25.3。使用该版本或升级到 Python 3.6+(3.6、3.7 或 3.8)。

【讨论】:

    猜你喜欢
    • 2020-09-16
    • 1970-01-01
    • 2021-01-28
    • 2014-09-07
    • 2018-10-23
    • 2021-04-28
    • 2018-06-29
    • 2015-02-28
    • 2018-05-19
    相关资源
    最近更新 更多