Install PyTorch in Anaconda environment

download address: https://download.pytorch.org/whl/torch_stable.html

my CPU is python 3, 7 win10 system corresponding to the following

2 switch directory

copies the downloaded WHL file to the site-packages directory in the lib of anaconda.
directory such as: E:\Anaconda3\Lib\site-packages.

3 installation
After

open the anaconda prompt and switch to the site-packages directory:
(base) C:\Users\Lenovo> E:
(base) E:> cd Anaconda3\Lib\site-packages
(base) E:\Anaconda3\Lib\site-packages> For example, my WHL file name is:
torch 1.3.0+cpu-cp37-cp37m-win_amd64. WHL

test: import torch
no error should be no problem

Read More: