Skip to content

Commit

Permalink
Update 9 linux_pip_config.md
Browse files Browse the repository at this point in the history
  • Loading branch information
daivlin committed Mar 1, 2020
1 parent b5a83aa commit 19e7ac6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 9 linux_pip_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ mkdir ~/.pip

vi ~/.pip/pip.conf

- 永久修改:
linux:
修改 ~/.pip/pip.conf (没有就创建一个), 内容如下:
```
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
```
- windows:
直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下
```
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
```



配置文件内容

mirrors.tuna.tsinghua.edu.cn 是清华的源地址,上面还有很多其它的源
Expand Down

0 comments on commit 19e7ac6

Please sign in to comment.