Windows下通过pip安装PyTorch 0.4.0 import 不成功 anaconda
2018-06-01 20:47
561 查看
问题:通过pip安装PyTorch 0.4.0成功,但是import时报错。
import torch
File "D:\Python\Python36\lib\site-packages\torch\__init__.py", line 78, in <module>
from torch._C import *
ImportError: DLL load failed: 找不到指定的模块。
解决:
Download win-64/intel-openmp-2018.0.0-8.tar.bz2
put the dll files in Library\bin into a dir
append the path of it to the environment variable PATH.
参考:
from torch._C import * (ImportError: DLL load failed: The specified module could not be found.
import torch
File "D:\Python\Python36\lib\site-packages\torch\__init__.py", line 78, in <module>
from torch._C import *
ImportError: DLL load failed: 找不到指定的模块。
解决:
Download win-64/intel-openmp-2018.0.0-8.tar.bz2
put the dll files in Library\bin into a dir
append the path of it to the environment variable PATH.
参考:
from torch._C import * (ImportError: DLL load failed: The specified module could not be found.
相关文章推荐
- Windows下用Anaconda安装Pytorch/torchvision
- Windows + Anaconda + Pytorch 安装
- anaconda 通过pip 安装python psycopg2
- pip安装python依赖成功,pycharm中import出错
- pip insatall pyMsql 安装成功,无法import
- Windows下通过Anaconda安装TensorFlow
- anaconda+pytorch+tensorflow安装
- Windows10下通过anaconda安装tensorflow
- anaconda windows theano keras 完全安装教程,没有gpu忽略那段话也成功了
- Python在Windows下使用ez_setup.py安装pip
- Windows 7下通过anaconda安装tensorflow
- 同时安装python2.7和Anaconda后python.exe和pip.py的区分
- Windows下通过Anaconda安装tensorflow
- windows下安装tensorflow+keras(only CPU,通过anaconda)
- Windows下安装PyTorch0.3.0
- windows下python各种库的安装---pip 和 anaconda
- windows下安装PyTorch0.3.0
- Windows下通过Anaconda安装TensorFlow及Spyder编译器
- 【NumPy】Windows下Python通过pip安装numPy的方法