windows torch dll load failed 操作系统无法运行%1

**   from torch._C import ***

ImportError: DLL load failed: 操作系统无法运行 %1。
from torch._C import *
ImportError: DLL load failed: The operating system cannot run %1.

收集了以下几种方法。都试了,对于我来说,只有方法一见效。 

1.去https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy下载最新

windows torch dll load failed 操作系统无法运行%1 numpy-1.15.1+mkl-cp37-cp37m-win_amd64.whl

windows torch dll load failed 操作系统无法运行%1

 

2.(无效)https://github.com/pytorch/pytorch/issues/7579

uninstalling & reinstalling Anaconda
conda update --all

升级时候出现

windows torch dll load failed 操作系统无法运行%1

conda update conda (not sure it was needed)
conda update ipykernel
and finally :
conda update --all


conda clean --all
conda update conda
conda update --all

3.(无效)conda install -c defaults intel-openmp -f

https://github.com/pytorch/pytorch/issues/8894( (but not before wasting hours in try-this-and-that).

遇到**警告(不**也没关系)

windows torch dll load failed 操作系统无法运行%1