使用清华镜像快速安装pytorch

添加conda的清华镜像源


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

添加额外的pytorch源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch

安装

conda config --set show_channel_urls yes
conda install pytorch1.2.0 torchvision0.4.0 cudatoolkit=10.0
conda
下面就可以快速安装了。

使用清华镜像安装python第三方包

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ***(你想要下载的包)


版权声明:本文为qq_39641349原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。