python -m pip install -U --force-reinstall pip
Collecting pip
Using cached pip-23.3-py3-none-any.whl.metadata (3.5 kB)
Using cached pip-23.3-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.3
Uninstalling pip-23.3:
Successfully uninstalled pip-23.3
Successfully installed pip-23.3
WARNING: There was an error checking the latest version of pip.
卸载pip
python -m pip uninstall pip
安装pip
python -m ensurepip --default-pip
pip换源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
happy ending!!!
update?
no
reference
unload
https://wenku.csdn.net/answer/d54ccfedf7e6472e817104dd86f278d6
install
Windows pip安装 - 知乎 (zhihu.com)
pip source switching