简体   繁体   English

在pycharm中安装pandas包

[英]install the pandas package in pycharm

When I try to install pandas, I get this error: 当我尝试安装熊猫时,出现此错误:

Could not find a version that satisfies the requirement numpy==1.9.3 (from versions: 1.10.4, 1.11.0, 1.11.1rc1, 1.11.1, 1.11.2rc1, 1.11.2, 1.11.3, 1.12.0b1, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.1rc1, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3) 找不到满足numpy == 1.9.3要求的版本(来自1.10.4、1.11.0、1.11.1rc1、1.11.1、1.11.2rc1、1.11.2、1.11.3、1.12.0b1 ,1.12.0rc1、1.12.0rc2、1.12.0、1.12.1rc1、1.12.1、1.13.0rc1、1.13.0rc2、1.13.0、1.13.1、1.13.3、1.14.0rc1、1.14.0、1.14 .1、1.14.2、1.14.3)
No matching distribution found for numpy==1.9.3 找不到numpy == 1.9.3的匹配分布

I use 我用

pip install pandas

and

python -m pip install pandas

In both cases, I get the same error. 在两种情况下,我都会遇到相同的错误。 Thanks. 谢谢。

You can update pip and try it again. 您可以更新pip ,然后重试。 The last version of pip is 10.0.1 . pip的最新版本是10.0.1

python -m pip install --upgrade pip

You have some sort of versionitis (versions of different software not being compatible with each other). 您有某种版本性(不同软件的版本彼此不兼容)。 If you are running Python <3.4, that could be the cause because Pandas no longer supports Python <3.4. 如果运行的是Python <3.4,则可能是原因,因为Pandas不再支持Python <3.4。 See this SO thread . 请参阅此SO线程

I saw this issue on Mac OS running python 3.7 and pandas 0.23. 我在运行python 3.7和pandas 0.23的Mac OS上看到了此问题。 I downgraded to python 3.6 and pandas 0.22, and that fixed my issue. 我降级到python 3.6和pandas 0.22,这解决了我的问题。

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

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