Commit 4407b7
2024-05-02 00:08:00 Qwas: 新增 python 代理配置| /dev/null .. proxy/Python.md | |
| @@ 0,0 1,29 @@ | |
| + | # Python 代理配置 |
| + | |
| + | ## pip |
| + | |
| + | ``` |
| + | pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ |
| + | ``` |
| + | |
| + | > 该命令写入配置文件 `~/.config/pip/pip.conf` |
| + | |
| + | cat ~/.pip/pip.conf |
| + | |
| + | ```conf |
| + | [global] |
| + | index-url = http://mirrors.aliyun.com/pypi/simple/ |
| + | |
| + | [install] |
| + | trusted-host=mirrors.aliyun.com |
| + | ``` |
| + | |
| + | 阿里云内网配置 |
| + | |
| + | ```conf |
| + | [global] |
| + | index-url=http://mirrors.cloud.aliyuncs.com/pypi/simple/ |
| + | |
| + | [install] |
| + | trusted-host=mirrors.cloud.aliyuncs.com |
| + | ``` |