更换pip源

来源:互联网 发布:神魔布袋戏 知乎 编辑:程序博客网 时间:2024/05/21 06:18
*Ubuntu

1. 在home下新建.pip文件夹(被隐藏文件夹)


2. 在.pip下新建pip.conf文件


3. 在pip.conf里输入:

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