设置国内源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set http://mirrors.aliyun.com/pypi/simple/
# 标准源
pip config set global.index-url https://pypi.python.org/simple/#临时指定
pip install somepakage --index-url=https://pypi.python.org/simple/
安装指定版pip
wget https://bootstrap.pypa.io/get-pip.py
python3.12 get-pip.py