安装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
然后就可以正常安装!!!
本文详细介绍了在安装Pandas过程中遇到的TypeError错误,错误源于find_packages()函数的include参数不被支持。文中提供了有效的解决方案,即升级setuptools库,之后Pandas的安装便能顺利进行。

6328

被折叠的 条评论
为什么被折叠?



