在 kagglekagglekaggle 上面对前人的例子进行复现其中发现,在采用 matplotlibmatplotlibmatplotlib 画图时候出现报错,经过查找原因,处理方法如下:
主要原因:pandaspandaspandas 和 matplotlibmatplotlibmatplotlib 库出现了冲突,也可能是由于 pandaspandaspandas 和 matplotlibmatplotlibmatplotlib 的版本过低,因此对两个 pythonpythonpython 库进行了更新,并重启 jupterjupterjupter notebooknotebooknotebook,
pip install --upgrade pandas==1.0.5
但是出现了报错,具体如下:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'c:\\users\\wenjia\\anaconda3\\lib\\site-packages\\~-ndas\\_libs\\algos.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.
因此,考虑采用 −−user--user−−user optionoptionoption
pip install --user --upgrade pandas==1.0.5
pip install --user --upgrade matplotlib
最终,错误 bugbugbug 得以解决。