1.添加-i 下载快:
pip install onnxruntime-gpu==X.X.X -i https://pypi.tuna.tsinghua.edu.cn/simple
清华源
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple/
阿里源
pip install xxx -i https://mirrors.aliyun.com/pypi/simple
中科大源
pip install xxx -i https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣源
pip install xxx -i http://pypi.douban.com/simple/
2.ubuntu中没有vim如何更换源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
备份:cp sources.list sources.list_bak
重写:echo “deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse” > sources.list
更新:sudo apt-get update
s