from torch._C import * ImportError: DLL load failed解决方法


import torch会出现如下错误:

import torch
  File "D:\ProgramData\Anaconda3\envs\pytorch-py36\lib\site-packages\torch\__init__.py", line 79, in <module>
    from torch._C import *
ImportError: DLL load failed: 找不到指定的程序。

网上解决方法众说纷纭,我的解决方法是:发现是Python版本问题:

https://github.com/pytorch/pytorch/issues/4518

This also worked for me.
Same for python 3.6: Using newest python 3.6.8 gives the same error
conda install python==3.6.7 works

解决方法:

conda install python==3.6.7

from torch._C import * ImportError: DLL load failed解决方法相关推荐

  1. from torch._C import * ImportError: DLL load failed: 找不到指定的模块。

    windows 安装pytorch 后测试 improt torch 报错如下: from torch._C import * ImportError: DLL load failed: 找不到指定的 ...

  2. from torch._C import * ImportError: DLL load failed 动态链接库(DLL)初始化例程失败

    from torch._C import * ImportError: DLL load failed 动态链接库(DLL)初始化例程失败 解决方法 然后从https://www.lfd.uci.ed ...

  3. 解决 from torch._C import *ImportError: DLL load failed: 找不到指定的程序。

    from torch._C import * ImportError: DLL load failed: 找不到指定的程序. Python3.6.0有问题,升级Python版本 conda insta ...

  4. python安装torch出现from torch._C import *ImportError: DLL load failed:报错解决方法

    从字面的角度想,出现这个错误的原因是因为找不到_C.dll文件.所以我们先找到电脑中这个文件所在的位置,例如我电脑中位置为C:\ProgramData\Anaconda3\envs\[env_name ...

  5. import torch报错 from torch._C import * ImportError: DLL load failed: 找不到指定的程序。解决办法

    查看很多办法无果之后使用conda install python==3.6.7完美解决

  6. python: ImportError:DLL load failed 解决方法。

    python: ImportError:DLL load failed 解决方法. 参考文章: (1)python: ImportError:DLL load failed 解决方法. (2)http ...

  7. from _sqlite3 import ImportError DLL load failed 找不到指定的模块

    from _sqlite3 import * ImportError: DLL load failed: 找不到指定的模块 Traceback (most recent call last): Fil ...

  8. from . import _arpack ImportError: DLL load failed

    from . import _arpack ImportError: DLL load failed 解决方法: pip uninstall scikit-image https://www.lfd. ...

  9. Django终端运行报错:ImportError: DLL load failed while importing _sqlite3: 找不到指定的模块。

    在pycharm运行没问题,但是在终端cmd或Powershell就会出错,如下: Traceback (most recent call last):File ".\manage.py&q ...

最新文章

  1. Microsoft COCO 数据集
  2. 如何做一个好的互联网老板(二)
  3. SpringCloud组件 源码剖析:Eureka服务注册方式流程全面分析
  4. Python 3.4.4 学习笔记(004)python manuals/the python tutorial -- 3. An Informal Introduction to Python...
  5. 解决C#网络通信编程的阻塞问题
  6. 23种设计模式之适配器模式代码实例
  7. linux 内核源码牛人分析 链接分享
  8. JAVA游戏编程之一----IDE安装调试(3) --JAD 文件介绍--debug调试
  9. 拨开字符编码的迷雾--字符编码转换
  10. iTunes安装不了怎么办(win7安装iTunes)..
  11. hdu 吉哥系列故事——完美队形 (最长公共子序列)
  12. 12.5m分辨率DEM数据?解读ASF DAAC的DEM数据--关于地理数据收集与处理的基本工具推荐(5)
  13. AVAudioPlayer 播放本地音乐
  14. VB一个漂亮的渐变时钟
  15. NodeMCU文档中文翻译 6 MQTT模块
  16. 雷军需要讲好新故事,小米需要新风口
  17. 【Effective C++】总结
  18. python web实战视频教程_2018Python Flask打造一个视频网站实战视频教程
  19. 如何让无源蜂鸣器响起来
  20. 【海神】各种工作特色比照和介绍

热门文章

  1. Asp.Net Core--基于角色的授权
  2. python扫描内网banner信息
  3. UVa 10188 - Automated Judge Script
  4. 七大你可能不知道的 Chrome 使用技巧
  5. [转]软件保护之注册算法篇
  6. spark总结——转载
  7. ubuntu终端彻底删除软件
  8. BZOJ 2342: 【SHOI2011】 双倍回文
  9. Jmeter使用笔记之意料之外的
  10. javascript学习-创建json对象数据,遍历