当我导入pandas时,我收到以下错误
ImportError: this version of pandas is incompatible with numpy < 1.9.0.
your numpy version is 1.8.0rc1.
所以我使用
升级了numpysudo pip install numpy --upgrade --ignore-installed
Installing collected packages: numpy
Successfully installed numpy-1.13.3
当我检查这个时,我的numpy版本是相同的,并且pandas import的错误保持不变。
>>> import numpy
>>> numpy.version.version
'1.8.0rc1'
请让我知道如何解决这个问题。我使用的是Python 2.7.10。问题出现在安装的Quandl
之后答案 0 :(得分:0)
也许你可以查看原来的numpy lib位置。
>>> import numpy
>>> print numpy.__version__
1.6.0
>>> print(numpy)
<module 'numpy' from '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/__init__.pyc'>
你可以删除lib,然后就可以了。