Jug*_*ram 3 easy-install python-2.7 pandas
我尝试使用安装pandas easy_install,它声称它成功地在我的Python目录中安装了pandas包.
我切换到IDLE并尝试import pandas它会抛出以下错误 -
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pandas
File "C:\Python27\lib\site-packages\pandas-0.12.0-py2.7-win32.egg\pandas\__init__.py", line 6, in <module>
from . import hashtable, tslib, lib
File "numpy.pxd", line 157, in init pandas.hashtable (pandas\hashtable.c:20282)
ValueError: numpy.dtype has the wrong size, try recompiling
请帮我诊断错误.
仅供参考:我已经安装了numpy包裹
也许你打断了pandas install,使用pip重试:
首先安装pip(如果你还没有这样做):
easy_install pip
Run Code Online (Sandbox Code Playgroud)
然后重新安装大熊猫:
pip install pandas --upgrade
Run Code Online (Sandbox Code Playgroud)
希望能帮助到你