Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/suman/.local/lib/python3.6/site-packages/pandas/__init__.py", line 180, in <module>
import pandas.testing
File "/home/suman/.local/lib/python3.6/site-packages/pandas/testing.py", line 5, in <module>
from pandas._testing import (
File "pandas/src/testing.pyx", line 4, in init pandas._testing (pandas/src/testing.c:4068)
File "/home/suman/.local/lib/python3.6/site-packages/pandas/types/missing.py", line 5, in <module>
from pandas import lib
File "pandas/lib.pyx", line 1, in init pandas.lib (pandas/lib.c:87552)
File "pandas/tslib.pyx", line 67, in init pandas.tslib (pandas/tslib.c:109851)
ImportError: cannot import name parse_date
答案 0 :(得分:0)
确保以正确的方向安装了熊猫:
pip install pandas
如果您已经这样做,则值得升级熊猫:
pip install pandas --upgrade
答案 1 :(得分:0)
嗨,我今天在开发 pyqt 项目时遇到了同样的错误。当我卸载一个然后尝试再次安装时,我发现有两个“熊猫”。我所做的是卸载两个“熊猫”,然后安装最新版本,然后它就可以工作了。虽然我在 Windows 上解决了这个问题,但希望对你有帮助。