Download link:
Source: (blogger) Tang San.
Link: https://pan.baidu.com/s/1K06S6jPuB7dsAtNSNU3zVw
Extraction code: 881b
installation steps:
- Enter the following command at the command prompt:
activate → conda activate py37 → enter the following command (# CUDA 10.1)
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.1 -c pytorch
- After the following interface appears, enter y and press Enter
- Open PyCharm and find Terminal at the bottom
- After clicking, the following interface appears, and the next goal is to convert the PS at the beginning into: (base)
- Find Anaconda Prompt (Anaconda3) or Anaconda Prompt (Anaconda) in the recent addition, right-click and select "Open File Location"
- Once you find the file location, right click and select "Properties"
- Start copying from cmd.exe in the target and copy to the end of the target
- In PyCharm, click File→Settings→Tools→Terminal
- After pasting the copied path as shown in the figure, click OK
- Re-run PyCharm, this time starting with (base)
- Enter the following commands
- At this time, the following statement appears, which means that all packages of PyTorch are installed successfully
- Inside the python file in PyCharm, enter the following
import torch
import time
print(torch.__version__)
Note: There are two underscores before and after version_
- After running, the following results are obtained, which means the installation is successful