mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Update help for pypi to fix #94
Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
parent
d990c57cb2
commit
e817729646
|
|
@ -18,12 +18,11 @@ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
|
|||
|
||||
### 设为默认
|
||||
|
||||
修改 `~/.config/pip/pip.conf` (Linux), `%APPDATA%\pip\pip.ini` (Windows 10) 或 `$HOME/Library/Application Support/pip/pip.conf` (macOS) (没有就创建一个), 修改
|
||||
`index-url`至tuna,例如
|
||||
升级 pip 到最新的版本 (>=10.0.0) 后进行配置:
|
||||
|
||||
```
|
||||
[global]
|
||||
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
pip install pip -U
|
||||
pip config set gloabl.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
```
|
||||
|
||||
pip 和 pip3 并存时,只需修改 `~/.pip/pip.conf`。
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue