安装pandas库报错_Pandas1.0.3安装失败module 'pandas' has no attribute 'plotting

在安装Pandas 1.0.3版本时遇到DLL加载失败和部分初始化模块无'plotting'属性的错误。尝试多种解决方案未果后,通过将Pandas版本降至1.0.1成功解决问题。安装命令为:pip install pandas==1.0.1。此外,若需读取xlsx文件,还需安装xlrd库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

遇到报错:File "C:\Python\Python38\lib\site-packages\pandas\core\window\ewm.py", line 5,

in

import pandas._libs.window.aggregations as window_aggregations

ImportError: DLL load failed while importing aggregations: 找不到指定的模块。File "C:\Python\Python38\lib\site-packages\pandas\core\series.py", line 4562,

in Series

plot = CachedAccessor("plot", pandas.plotting.PlotAccessor)

AttributeError: partially initialized module 'pandas' has no attribute 'plotting

' (most likely due to a circular import)

看解决办法,直接跳到最后。

刚接触python,准备装Pandas库,装了一个大中午,不容易。python也是这两天下载的3.8版本。

使用pip命令安装pandaspip3 install pandas

自动安装,就是下载有点慢。装好了(其实没有),如下图。f2c1b8af2c6dfd580dea090e6f36c6a2.png

看到Successfully,我以为装好了,也没在意(wheel是没装,也要pip3 install wheel安装一下)。

然后测试Pandas 是否安装好,在py解释器使用import测试,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值