This commit is contained in:
43
Docs/配置Pip加速.md
Normal file
43
Docs/配置Pip加速.md
Normal file
@@ -0,0 +1,43 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# 配置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
|
||||
```
|
||||
|
Reference in New Issue
Block a user