Python 3.x ModuleNotFoundError:没有名为';pandas.lib';
Python 3.x ModuleNotFoundError:没有名为';pandas.lib';,python-3.x,pandas,Python 3.x,Pandas,从ggplot导入mtcars 从jupyter笔记本上的ggplot导入mtcars数据集时,我遇到了这个错误 我的系统是windows 10,我已经重新安装并升级了pandas(也使用了--user-in-installation命令),但效果并不理想。有没有其他方法可以消除这个错误 \中的Anaconda3\lib\site packages\ggplot\stats\smoothers.py 2个unicode(U字面值) 3作为np输入numpy ---->4从pandas.lib导入
从ggplot导入mtcars
从jupyter笔记本上的ggplot导入mtcars数据集时,我遇到了这个错误
我的系统是windows 10,我已经重新安装并升级了pandas(也使用了--user-in-installation命令),但效果并不理想。有没有其他方法可以消除这个错误
\中的Anaconda3\lib\site packages\ggplot\stats\smoothers.py
2个unicode(U字面值)
3作为np输入numpy
---->4从pandas.lib导入时间戳
5进口熊猫作为pd
6将statsmodels.api作为sm导入
ModuleNotFoundError:没有名为“pandas.lib”的模块
我刚试过一种方法。我希望其他人也能这样做。我改变了
对此
from pandas._libs import Timestamp
date_types = (
pd._tslib.Timestamp,
pd.DatetimeIndex,
pd.Period,
pd.PeriodIndex,
datetime.datetime,
datetime.time
)
因为模块的路径保存在路径C:\Users\HP\Anaconda3\Lib\site packages\libs中
是自由的吗
还有,我从
date_types = (
pd.tslib.Timestamp,
pd.DatetimeIndex,
pd.Period,
pd.PeriodIndex,
datetime.datetime,
datetime.time
)
对此
from pandas._libs import Timestamp
date_types = (
pd._tslib.Timestamp,
pd.DatetimeIndex,
pd.Period,
pd.PeriodIndex,
datetime.datetime,
datetime.time
)
在此之前,我在“C:\Users\HP\Anaconda3\Lib\site packages\ggplot\util.py”路径上对日期类型的util.py进行了相同的更改。这帮助我摆脱了我在问题中提到的错误。这是否回答了你的问题?