JohnLyu的blog

橙汁事务所艾欧泽亚分部

0%

PyPI 阿里镜像

PyPI 镜像
简介
PyPI (Python Package Index) 是 Python 编程语言的软件存储库。开发者可以通过 PyPI 查找和安装由 Python 社区开发和共享的软件,也可以将自己开发的库上传至 PyPI 。

a. 找到下列文件

1
~/.pip/pip.conf

b. 在上述文件中添加或修改:

1
2
3
4
5
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

或者直接运行:

1
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/