一、anaconda中创建pytorch虚拟环境
二、 添加清华镜像源
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 --set show_channel_urls yes
三、安装pytorch环境
conda install pytorch1.7.0 torchvision0.8.0 torchaudio==0.7.0 cudatoolkit=10.2
pytorch官网:https://pytorch.org/
#安装其他所需环境
opencv-python
pip install pyyaml
pip install tqdm
pip install matplotlib
pip install scipy