pip使用国内源

# 永久修改
# 中国科学技术大学
pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple/
# 阿里云
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
 
阿里云:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple/
华中科技大学:http://pypi.hustunique.com/

common package

pip install configparser     # 读取配置文件相关包
pip install opencv-python    # opencv相关的包

install git project

# shwo package info
pip show packagename
 
# install package form github
pip install git+https://github.com/invoke-ai/GFPGAN.git#egg=gfpgan