环境: python3.10
背景:在阿里云服务器上安装torch. pip3 install torch
速度非常慢。
解决办法:
使用清华源安装:
pip3 install torch -i https://pypi.tuna.tsinghua.edu.cn/simple
其他源也行:
https://pypi.mirrors.ustc.edu.cn/simple/
各种软件的源,可以参考阿里云:
https://developer.aliyun.com/mirror/