import torch error: from torch._C import * ImportError: DLL load failed: Can not find the specified program, the perfect solution!
1. Description of the problem
just got to buy a new laptop yesterday and could not wait to begin the installation Pytorch. First installed Ananconda all goes well, but when I installed pytorch with conda command, at the command line, type "import torch" found error, an error message is: "import torch error: from torch._C import * ImportError: DLL load failed: Can not find the specified program. "
2. solutions
after access to some information found python version of the problem Anaconda under pytorch virtual environment, I installed pytorch version 1.2.0, and the default python version 3.0.0 (when creating a virtual environment using the command python conda version). So I use conda command: "conda install python" (automatically select the appropriate version for your environment configuration) will be updated to version python python = 3.6.10, successfully resolved the problem.
3. Screenshot
problems the perfect solution!
4. Summary
Similar to the above problems have a lot of problems, this time we should consider is not because of a problem between the various versions of the package does not match, sometimes you can quickly solve the problem!
This is what I wrote on CSDN first blog, welcome criticism, a lot of attention!