pip设置代理
pip --proxy 127.0.0.1:8123 install requests
pip设置镜像
vim ~/.pip/pip.conf
[global]
trusted-host = mirrors.aliyun.com
index-url = https://mirrors.aliyun.com/pypi/simple
disable-pip-version-check = True # 取消pip更新提醒
How to suppress pip upgrade warning?
pip安装package
pip install XXX
# 更新python package
pip install XXX -U
# 重新安装XXX
pip install --upgrade --force-reinstall XXX
# 搜索可安装的python package版本version
pip install XXX==
Can I force pip to reinstall the current version?
Python and pip, list all versions of a package that’s available?