pip更换清华镜像源

作用:pip install xxx(模块) 下载飞快 急速畅享

linux下,修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url至tuna,内容如下:

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

你可能感兴趣的:(pip,pip更换镜像源)