您的位置:首页 > 其它

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: