Ubuntu系统下,创建~/.pip文件夹,并在其中创建pip.conf文件。
编辑pip.conf文件如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
本文介绍如何在Ubuntu系统中配置pip源,通过创建~/.pip文件夹及pip.conf文件,设置清华镜像作为默认pip仓库,加速Python包的下载。
Ubuntu系统下,创建~/.pip文件夹,并在其中创建pip.conf文件。
编辑pip.conf文件如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
688
1892
923

被折叠的 条评论
为什么被折叠?