# 修改conda配置
vim .condarc
# 在配置钟添加清华源
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
- default
show_channel_urls: true
# 安装pytorch和对应版本的cudatoolkit
conda install pytorch=1.4.0 torchvision cudatoolkit=10.1
更换conda下载源,加快安装速度-pytorch
最新推荐文章于 2024-07-31 16:05:21 发布