我正在學習如何使用大熊貓,但出現以下錯誤工作:AttributeError的:「模塊」對象有沒有屬性「版本」
Traceback (most recent call last):
File "data_frame.py", line 2, in <module>
import pandas as pd
File "/Users/gregwinter/anaconda2/lib/python2.7/site-packages/pandas/__init__.py", line 13, in <module>
__import__(dependency)
File "/Users/gregwinter/numpy.py", line 22, in <module>
from pandas.compat.numpy_compat import *
File "/Users/gregwinter/anaconda2/lib/python2.7/site-packages/pandas/compat/numpy_compat.py", line 15, in <module>
_np_version = np.version.short_version
AttributeError: 'module' object has no attribute 'version'
我不知道如何解決這個問題。任何你可以告訴的是如何解決這個問題都很好。
檢查當前工作目錄中名爲'numpy.py'的文件。 –