在将Pandas安装到我的PI上时出现错误
首次运行: sudo pip3安装熊猫
然后使Numpy工作: sudo apt-get install libatlas-base-dev
Numpy现在可以导入,但是我在使用Pandas时遇到以下错误:
>>> import pandas
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pandas
File "/home/pi/.local/lib/python3.5/site-packages/pandas/__init__.py", line 42, in <module>
import pandas.core.config_init
File "/home/pi/.local/lib/python3.5/site- packages/pandas/core/config_init.py", line 13, in <module>
import pandas.core.config as cf
File "/home/pi/.local/lib/python3.5/site- packages/pandas/core/config.py", line 807, in <module>
is_text = is_instance_factory((str, bytes))
File "/home/pi/.local/lib/python3.5/site- packages/pandas/core/config.py", line 778, in is_instance_factory
from pandas.core.common import pprint_thing
File "/home/pi/.local/lib/python3.5/site- packages/pandas/core/common.py", line 23, in <module>
from pandas.core.dtypes import CategoricalDtype, CategoricalDtypeType, DatetimeTZDtype, DatetimeTZDtypeType
ImportError: cannot import name 'CategoricalDtype'
有什么建议吗?