首页 > 解决方案 > pytorch 中的 dll 失败

问题描述

我正在使用 Windows 10 和 pytorch 1 我已经成功使用了 pytorch,但是,在我加载 matplotlib 后出现以下错误: ImportError: DLL load failed: The specified module could not be found。火炬._C. 即使我先卸载了 matplotlib,然后卸载了 pytorch 并重新安装了 pytorch,此错误仍然存​​在。我什至创建了一个新环境并在其中安装了 pytorch。我看到的帖子都没有帮助我解决问题。全球环境似乎发生了一些事情。

标签: pythonwindows-10pytorch

解决方案


更新:

此问题已关闭。只需将 python 更新到最新版本即可。

conda update python

链接到python问题

原因似乎是最近从默认通道(python 3.6.8 或 3.7.2)构建的 python。

链接到 pytorch 问题

有几种解决方法,

conda install python==3.7.1

或取决于您喜欢哪个版本

conda install python==3.6.7

或最新的包 python-3.7.2 build h8c8aaf0_6

conda install -c c3i_test python

推荐阅读