使用国内豆瓣源

Posted lee-xingxing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用国内豆瓣源相关的知识,希望对你有一定的参考价值。

1、配置文件

编辑配置文件 ~/.pip/pip.conf,添加内容如下:

[global]
index-url = https://pypi.doubanio.com/simple
trusted-host = pypi.doubanio.com

2、命令行选项

使用 pip 命令安装扩展包时指定源:

pip install -i https://pypi.doubanio.com/simple DBUtils

以上是关于使用国内豆瓣源的主要内容,如果未能解决你的问题,请参考以下文章