44 lines
546 B
Markdown
44 lines
546 B
Markdown
> 本文作者:丁辉
|
|
|
|
# 配置Pip加速
|
|
|
|
- 临时方式
|
|
|
|
```bash
|
|
pip install $all -i https://pypi.tuna.tsinghua.edu.cn/simple/
|
|
```
|
|
|
|
- 永久方式
|
|
|
|
```bash
|
|
vi /etc/pip.conf
|
|
```
|
|
|
|
```bash
|
|
[global]
|
|
index-url = https://mirrors.aliyun.com/pypi/simple
|
|
[install]
|
|
trusted-host=mirrors.aliyun.com
|
|
```
|
|
|
|
**镜像站点**
|
|
|
|
- 豆瓣
|
|
|
|
```bash
|
|
https://pypi.douban.com/simple
|
|
```
|
|
|
|
- 阿里云
|
|
|
|
```bash
|
|
https://mirrors.aliyun.com/pypi/simple
|
|
```
|
|
|
|
- 清华大学
|
|
|
|
```bash
|
|
https://pypi.tuna.tsinghua.edu.cn/simple
|
|
```
|
|
|