Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/341.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 熊猫导入错误_Python_Numpy_Pandas_Versioning - Fatal编程技术网

Python 熊猫导入错误

Python 熊猫导入错误,python,numpy,pandas,versioning,Python,Numpy,Pandas,Versioning,我正在尝试安装pandas,但它抛出以下错误: import pandas Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/pandas/__init__.py", line 7, in <module> from pandas import hashtable, tsl

我正在尝试安装pandas,但它抛出以下错误:

import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/pandas/__init__.py", line 7, in    
<module>
from pandas import hashtable, tslib, lib
File "pandas/src/numpy.pxd", line 157, in init pandas.hashtable 
(pandas/hashtable.c:38262)
ValueError: numpy.dtype has the wrong size, try recompiling
导入熊猫
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/usr/local/lib/python2.7/site packages/pandas/_init__.py”,第7行,在
从导入哈希表、tslib、lib
文件“pandas/src/numpy.pxd”,第157行,位于init pandas.hashtable中
(熊猫/哈希表c:38262)
ValueError:numpy.dtype大小错误,请尝试重新编译
我的熊猫版本是0.17.0 我的NumPy版本是1.9.2


有人能帮我解决上面的问题吗?

上面说所使用的编译模块是为不同的机器编译的,是不是这样?看看这些问题:什么操作系统?您是如何安装pandas和numpy的?安装numpy或pandas时是否收到任何警告?如果是这样的话,那不是解决具体问题的方法,而是考虑安装能解决问题的AcANDA,我在DOCKER中尝试所有这些(我的项目的所有包已经被系统的团队安装)。我有python 2.7.10。