查看所有环境
conda info --envs 或者 conda env list
创建环境
conda create --name envname python=3.7
激活环境
conda activate envname
安装pytorch
conda install pytorch
换源清华
配置
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
conda config --set show_channel_urls yes
# reference
# https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
检查
conda config --show channels
或者
conda install -i https://pypi.tuna.tsinghua.edu.cn/simple pytorch
标签:cn,--,anaconda,conda,tsinghua,使用,config From: https://www.cnblogs.com/weinan030416/p/17061119.html