Computer environment: WINDOWS10 python3.5 cuda8.0
You can find out how to install each version on the website.
Here's how to install the PIP by using the following command:
1 pip3 Install http://2 pip3 Install Torchvision
Verify the installation in Python after the installation is complete:
Python3.5.2(v3.5.2: 4DEF2A2901A5, June - ., A: -: -) [MSC v.1900 -bit (AMD64)] on Win32type" Help","Copyright","credits"Or"License" forMore information.>>>Import Torch>>>Import Torchvision>>>
Problems that may occur:
When import torch occurs from torch._c import * Importerror:dll load failed: error not found for the specified module
The reason is that some DLL files are missing and are resolved in the following steps:
1. Download win-64/intel-openmp-2018.0.0-8.tar.bz2
2. Unzip it and place all DLL files in its Library/bin folder under the DLLs folder in the directory where Python is located (for example C:\Users\qin\AppData\Local\Programs\Python\Python35\ DLLs)
3. Add the above path into the environment variable path.
OK, Finish.
Install Pytorch on Windows