[Installation] python3.6.1 successfully installed torch, import torch error

【installation method】

pip install torch-0.4.1-cp36-cp36m-win_amd64.whl

【wrong description】

ImportError: DLL load failed: The specified module could not be found.

【Solution】

1, open  https://anaconda.org/anaconda/intel-openmp/files , download win-64 / intel-openmp- 2018.0.0-8.tar.bz2 and extract.

    

2, the file is opened extracted folders intel-openmp-2018.0.0-8 in Library / bin, a copy of which two .dll file and in a new folder.

3, add the .dll file to the folder path environment variable system.

4, this step is very important, then be sure to turn off the original python related software, and then restart the python to take effect

Guess you like

Origin www.cnblogs.com/ITCSJ/p/11352929.html