最近实测发现,pip百度镜像源速度相当稳定可靠,具体做法:
第一步: pip config set global.index-url https://mirror.baidu.com/pypi/simple
![](https://img.haomeiwen.com/i10758717/46a8e89e27b0d7c3.png)
第二步,打开pip.ini文件,增加trusted-host,如下:
![](https://img.haomeiwen.com/i10758717/56807a67dc8a75b0.png)
第三步,安装tensorflow,pip install tensorflow 测试一下速度,6.8MB/s 接近我家带宽的极限,如下:
![](https://img.haomeiwen.com/i10758717/4525f05879a17779.png)
最近实测发现,pip百度镜像源速度相当稳定可靠,具体做法:
第一步: pip config set global.index-url https://mirror.baidu.com/pypi/simple
第二步,打开pip.ini文件,增加trusted-host,如下:
第三步,安装tensorflow,pip install tensorflow 测试一下速度,6.8MB/s 接近我家带宽的极限,如下:
本文标题:永久设置pip百度镜像源
本文链接:https://www.haomeiwen.com/subject/vsvjyltx.html
网友评论