Win10下pip安装PyTorch后出现“from torch._C import * ImportError: DLL load failed: 找不到指定的模块”错误的解决办法
2019-04-17 15:26
726 查看
亲测可行(之前找到的方法:添加PATH,对我不管用。例外在此之前装过0.4.1版本的开域导入, 后来更新成0.4.0 就报错了)
博主今天安装遇到了import问题记录一下方便以后参考。
[code]Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import torch Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Admin\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\__init__.py", line 78, in <module> from torch._C import * ImportError: DLL load failed: 找不到指定的模块。
I had this similar problem in windows 10...
Solution:
-
Download win-64/intel-openmp-2018.0.0-8.tar.bz2 from https://anaconda.org/anaconda/intel-openmp/files
-
Extract it and put the dll files in Library\bin into
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin
-
-
Make sure your cuda directory is added to your
%PATH%
environment variable
相关文章推荐
- Windows下pip安装PyTorch后出现“from torch._C import * ImportError: DLL load failed: 找不到指定的模块”错误的解决办法
- import torch时出现问题:找不到‘torch'这个module或出现from torch._C import * ImportError: DLL load failed: 找不到指定的模块
- 通过pip安装Pytorch报错ImportError: DLL load failed: 找不到指定的模块解决办法
- [Python] from scipy import sparse 报 DLL load failed:找不到指定模块错误
- from lxml import etree ImportError: DLL load failed: 找不到指定的模块
- Tensorflow-GPU环境配置教程 Win10+CUDA 出现问题解决方案:ImportError: DLL load failed: **找不到指定的模块**
- 终于解决 import matplotlib.pyplot 时出现的 importError: DLLload failed:找不到指定的模块
- from scipy.linalg import _fblas ImportError: DLL load failed: 找不到指定的模块
- 解决scrapy fetch http://www.csdn.net ModuleNotFoundError No module named 'win32api'和ImportError DLL load failed找不到指定的模块
- QTCreator 打不开,提示“loadlibrary failed with error 126:找不到指定模块”的解决办法
- ImportError: DLL load failed: 找不到指定的模块
- 解决安装python matplotlib包时出现”ImportError: DLL load failed: 找不到指定的程序“ 的问题
- python mysqlLdb ImportError: DLL load failed: 找不到指定的模块
- win10环境+pycharm+anaconda+python3.6+OpenCV3.3安装,ImportError: DLL load failed: 找不到指定的模块
- from .cv2 import * ImportError: DLL load failed: 找不到指定的模块。
- win7环境+pycharm+python3.5+OpenCV安装,引入cv2时出现:ImportError: DLL load failed: 找不到指定的模块
- windows上安装tensorflow时报错,“DLL load failed: 找不到指定的模块”的解决方式 最近打算开始研究一下机器学习,今天在windows上装tensorflow花了点功夫
- win7/python3.5/tensorflow ImportError: DLL load failed: 找不到指定的模块
- spyder无法启动报"ImportError: DLL load failed: 找不到指定的模块"的解决办法
- windows上安装tensorflow时报错,“DLL load failed: 找不到指定的模块”的解决方式