问题遇到的现象和发生背景
已确认成功安装pandas及相关的库,pip list 能正确显示安装成功,
问题相关代码,请勿粘贴截图
但是在import pandas as pd 的时候,出现报错
运行结果及报错内容
Traceback (most recent call last):
File "F:\pytho实例\办公自动化\Excel读写\Excel写.py", line 1, in <module>
import pandas as pd
File "D:\python\lib\site-packages\pandas\__init__.py", line 22, in <module>
from pandas.compat import is_numpy_dev as _is_numpy_dev
File "D:\python\lib\site-packages\pandas\compat\__init__.py", line 15, in <module>
from pandas.compat.numpy import (
File "D:\python\lib\site-packages\pandas\compat\numpy\__init__.py", line 4, in <module>
from pandas.util.version import Version
File "D:\python\lib\site-packages\pandas\util\__init__.py", line 1, in <module>
from pandas.util._decorators import ( # noqa:F401
File "D:\python\lib\site-packages\pandas\util\_decorators.py", line 14, in <module>
from pandas._libs.properties import cache_readonly # noqa:F401
File "D:\python\lib\site-packages\pandas\_libs\__init__.py", line 13, in <module>
from pandas._libs.interval import Interval
ModuleNotFoundError: No module named 'pandas._libs.interval'
我的解答思路和尝试过的方法
尝试过卸载然后重装pandas及其相关库,但是仍然报错,报错一模一样