最近实测发现,pip百度镜像源速度相当稳定可靠,具体做法:
第一步: pip config set global.index-url https://mirror.baidu.com/pypi/simple

设置百度镜像源
第二步,打开pip.ini文件,增加trusted-host,如下:

添加trusted-host
第三步,安装tensorflow,pip install tensorflow 测试一下速度,6.8MB/s 接近我家带宽的极限,如下:

6.8MB
增加Ubuntu下的步骤
第一步: pip config set global.index-url https://mirror.baidu.com/pypi/simple

设置百度镜像源
第二步,打开pip.conf文件,增加trusted-host,如下:

添加增加trusted-host
第三步,安装openvino-dev,pip install openvino-dev[onnx]测试一下速度,10MB+/s。

测试百度源速度