欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

解决pycharm时报错,ImportError: DLL load failed

程序员文章站 2022-07-11 14:31:33
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(2)再用 pip uninstall matplotlib 导入matplotlib,此时如.....

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

解决方法

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

解决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

解决pycharm时报错,ImportError: DLL load failed

本文地址:https://blog.csdn.net/weixin_40345790/article/details/108307133

相关标签: python ImportError