总体按照这个思路:
安装Anaconda参照我的博客前半部分
import torch时出现报错
Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure.
It can be downloaded at https://aka.ms/vs/16/release/vc_redist.x64.exe
Traceback (most recent call last):
File “”, line 1, in
File “D:\Anaconda\envs\pytorch\lib\site-packages\torch_init_.py”, line 128, in
raise err
OSError: [WinError 126] 找不到指定的模块。 Error loading “D:\Anaconda\envs\pytorch\lib\site-packages\torch\lib\asmjit.dll” or one of its dependencies.
解决方法在这里------解决方法