Hi help me solve the problem please - torch._C import * ImportError: DLL load failed:

Hi help me solve the problem please !!!

Here are some of my installation experience with PyTorch on WIndows 8.1.
JetBrains PyCharm 2017.3.3 x64
Traceback (most recent call last):
File “C:/Users/DmitrySony/PycharmProjects/PyTorch/555y.py”, line 1, in
import torch
File “C:\Users\DmitrySony\AppData\Local\Programs\Python\Python36\lib\site-packages\torch_init_.py”, line 78, in
from torch._C import *
ImportError: DLL load failed: The specified procedure could not be found.

I had that problem when I compiled Pytorch for Python 3.6 in Windows then tried installing it again for a Python 3.7 environment. Instead, I did the following:

  • Switch to the python 3.7 environment, e.g. activate python3.7 (or whatever you named the environment)

  • Run python setup.py clean

  • Then recompile (using python setup.py install or cuda90.bat if using Peterjc123’s scripts.)