Skip to content

pip3 怎样修改默认源

修改源可以极大提升下载速度。

官方文档: https://pip.pypa.io/en/latest/user_guide.html#configuration

windows%HOME%\pip\pip.ini, 没有就自己创建一个。

INFO

You can set a custom path location for this config file using the environment variable PIP_CONFIG_FILE.

linux 下 /etc/pip.conf

我的配置

ini
[global]
trusted-host=mirrors.aliyun.com
index-url=http://mirrors.aliyun.com/pypi/simple/

最后编辑时间:

Version 4.1 (framework-1.1.4)