按照官网的命令安装完发现import torch报错:
Traceback (most recent call last):
File “test.py”, line 2, in
import torch
File “C:\Anaconda3\lib\site-packages\torch_init_.py”, line 41, in
from torch._C import *
ImportError: DLL load failed: The specified module could not be found.
解决方案将Anaconda的Python版本从3.6.0升级至更高版本。