用清华源pip 和 conda install 安装


pip

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

pypi 镜像每 5 分钟同步一次,所以应该是非常靠谱的

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/

conda config --set show_channel_urls yes

比如装pytorch:

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

conda install pytorch torchvision cudatoolkit=10.0

 

 

参考:

https://www.cnblogs.com/bonelee/p/9336886.html

https://blog.csdn.net/zzq060143/article/details/88042075 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM