有些小伙伴在安装pandas的时候出现了一些错误导致pandas安装不上。今天小编带来一个pandas安装报错的案例和解决方案,如果小伙伴也遇到了相似的错误可以尝试一下对应的解决方案看看能不能解决问题。

安装pandas出错:

Running setup.py (path:/data/envs/py3/build/pandas/setup.py) egg_info for package pandas
Traceback (most recent call last):
File “<string>”, line 17, in <module>
File “/data/envs/py3/build/pandas/setup.py”, line 736, in <module>
packages=find_packages(include=[‘pandas’, ‘pandas.*’]),
TypeError: find_packages() got an unexpected keyword argument ‘include’
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File “<string>”, line 17, in <module>
File “/data/envs/py3/build/pandas/setup.py”, line 736, in <module>
packages=find_packages(include=[‘pandas’, ‘pandas.*’]),
TypeError: find_packages() got an unexpected keyword argument ‘include’

解决办法:

(原因是include 中的 find_packages()过于老旧)

pip install -U setuptools

然后就可以正常安装!!!

补充:pyCharm上解决安装不上pandas库问题

最近在PyCharm上安装pandas库的时候,总是安装不上,提示好像是pip出了错误。

我使用的是python 3.4版本。最后判断应该是自己pip版本应该太旧了,最后再cmd更新了pip之后就行了。

如下在cmd操作指令:

python -m pip install -U pip

更新完成之后,在PyCharm平台正常搜索安装pandas库就行了。

以上就是pandas安装不上的解决方案了,希望能给大家一个参考,也希望大家多多支持W3Cschool

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。