python - pytorch 中的 dll 失败
问题描述
我正在使用 Windows 10 和 pytorch 1 我已经成功使用了 pytorch,但是,在我加载 matplotlib 后出现以下错误: ImportError: DLL load failed: The specified module could not be found。火炬._C. 即使我先卸载了 matplotlib,然后卸载了 pytorch 并重新安装了 pytorch,此错误仍然存在。我什至创建了一个新环境并在其中安装了 pytorch。我看到的帖子都没有帮助我解决问题。全球环境似乎发生了一些事情。
解决方案
更新:
此问题已关闭。只需将 python 更新到最新版本即可。
conda update python
原因似乎是最近从默认通道(python 3.6.8 或 3.7.2)构建的 python。
有几种解决方法,
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
推荐阅读
- python - Unable to figure out what's missing to run my Django Project successfully
- integromat - 在我的自定义 Integromat 应用程序中使用不同的错误结构进行错误处理
- javascript - Infinite render cycle on redirect inside for loop
- flutter - The getter 'printable' was called on null
- linux-kernel - Network Output Buffering
- python - 无法获得 columnpan 以使按钮填充 Tkinter 框架的行
- python-3.x - How download file from one folder to another in python3?
- javascript - Post method is not supported for route in vuejs and laravel
- amazon-web-services - 亚马逊:如何使用 cloudformation 输出数据发送 SNS
- java - MotionLayout 滑动错误