【发布时间】:2018-11-09 19:03:13
【问题描述】:
我正在使用 python 3.5 在我的 Windows 机器中尝试import torch。 (仅限 CPU)(点)
我已按照official website 中给出的步骤进行操作。
当我尝试导入torch时,它给了我错误:
from torch._C import *
ImportError: DLL load failed: The specified module could not be found.
我查看了from torch._C import * (ImportError: DLL load failed: The specified module could not be found. 和ModuleNotFoundError: No module named 'torch._C' 并按照他们的说明进行操作,但错误仍然存在。
总回溯:
Traceback (most recent call last):
File "D:\CFPS.py", line 1, in <module>
import torch
File "C:\Program Files (x86)\Python35\lib\site-packages\torch\__init__.py",
line 78, in <module>
from torch._C import *
ImportError: DLL load failed: The specified module could not be found.
[Finished in 0.6s]
有没有办法解决这个问题?
【问题讨论】:
标签: python machine-learning pytorch torch