win10 + anaconda + virtual environment + cuda9.2 install Pytorch

My cuda9.2, the actual measurement can be installed version 9.0
Method to view your own cuda version:
Control Panel-Hardware and Sound-NVIDIA Control Panel-Help-System Information Components
Insert picture description here
9.2.217
Reference: https://blog.csdn.net/weixin_42158966 /article/details/88543668?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
specific installation process
Create a virtual environment

conda create -n pytorch python=3.6

activation

activate pytorch

Add Tsinghua Mirror Source

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
conda config --set show_channel_urls yes

Although my version is 9.2, the official website recommends the following program to write 9.2, but Tsinghua mirror source does not have this version (2020.3.30)
so I installed 9.0

conda install pytorch torchvision cudatoolkit=9.0

Pro test available
Insert picture description here
Reference: https://blog.csdn.net/qq_31736627/article/details/99415460?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

Published 14 original articles · praised 0 · visits 771

Guess you like

Origin blog.csdn.net/kunAUGUST/article/details/105205319