解決python3安裝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版本。最后判斷應(yīng)該是自己pip版本應(yīng)該太舊了,最后再cmd更新了pip之后就行了。
如下在cmd操作指令:
python -m pip install -U pip
更新完成之后,在PyCharm平臺正常搜索安裝pandas庫就行了。
以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持本站。
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。