admin管理员组

文章数量:1530085

本文是为了完完全全的记载如何在anaconda上装载pytorch

首先进入Anaconda prompt


将清华镜像加入

conda config --add channels https://mirrors.tuna.tsinghua.edu/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu/anaconda/cloud/pytorch/
# for legacy win-64
conda config --add channels https://mirrors.tuna.tsinghua.edu/anaconda/cloud/peterjc123/
conda config --set show_channel_urls yes

 

然后创建一个新的pytorch的环境(anaconda方便之处就在此,如果你一个电脑多个人使用的话,每个人拥有自己的运行环境,比如我的是pytorch,我女朋友的是TensorFlow,两个互不干扰)

 

conda create -n xfq_pytorch python=3.6

然后 activate xfq_pytorch进入新建的环境,在

本文标签: 清华镜像AnacondaPytorch