简体   繁体   English

Pandas 上的 Pip 安装失败?

[英]Pip install failure on Pandas?

When I try to install my project from the requirements.txt file, I run pip install -r requirements.txt and it fails on my pandas dependency.当我尝试从 requirements.txt 文件安装我的项目时,我运行pip install -r requirements.txt并且它在我的 Pandas 依赖项上失败。 I am not exactly sure why does anyone have any advice?我不完全确定为什么有人有任何建议?

pip version:点子版本:

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

requirements.txt:要求.txt:

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

Error:错误:

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

Something like that happened to me in the past.类似的事情过去发生在我身上。 I solved it by uninstalling pandas then reinstalling it again.我通过卸载熊猫然后重新安装来解决它。 Perhaps you installed pandas long time ago so your version of out of date.也许你很久以前就安装了pandas,所以你的版本已经过时了。

pandas 1.0.0 requires Python 3.6+. pandas 1.0.0需要 Python 3.6+。 The last version that supports Python 3.5 is 0.25.3 .支持 Python 3.5 的最后一个版本是0.25.3 Either use the version or upgrade to Python 3.6+ (3.6, 3.7 or 3.8).使用该版本或升级到 Python 3.6+(3.6、3.7 或 3.8)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM