2020年8月30日15:44:44

问题:在跑深度之眼pytorch框架班的线性回归代码时,运行lesson-03-Linear-Regression.py导入import matplotlib.pyplot as plt 画图的时候,出现了ImportError: DLL load failed

解决方法

(1)先用 pip uninstall  matplotlib,卸载matplotlib

学习记录001-使用pycharm时报错,ImportError: DLL load failed

(2)再用 pip uninstall  matplotlib 导入matplotlib,此时如果用上面这语句可能会超时,那么我们可以将下载源切换到国内的清华源

即改用下面这语句,pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple (如果是下载其他安装包也是这样,后面添加一个国内的镜像,具体方法参考:https://blog.csdn.net/weixin_40345790/article/details/104504225

学习记录001-使用pycharm时报错,ImportError: DLL load failed

 

相关文章: