Python pip

2020-06-01  本文已影响0人  dragon海鸟

pip镜像设置为清华大学开源软件镜像站(Mac)

~/.pip/pip.conf

打开pip.conf文件,默认如一下代码

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

更改index-url

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

安装库

pip install Flask
上一篇 下一篇

猜你喜欢

热点阅读