pip镜像设置

2019-10-23  本文已影响0人  从今以后_19d7

前言

本文使用清华镜像,需要其他镜像的也可以自行搜索

临时使用镜像下载

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.5.0

永久生效

# ~/.pip/pip.conf 

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
上一篇 下一篇

猜你喜欢

热点阅读