查看當前的pip版本
pip --version
pip install --upgrade pip
首先輸入這個命令后它會提示你下一步為:
ERROR: To modify pip, please run the following command:
d:\python安裝位置\python.exe -m pip install --upgrade pip
后面這個是根據自己電腦的情況來的
然后運行d:\python安裝位置\python.exe -m pip install --upgrade pip即可自下載安裝:
C:\Users\xzl>d:\python安裝位置\python.exe -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/2e/df11ea7e23e7e761d484ed3740285a34e38548cf2bad2bed3dd5768ec8b9/pip-20.1-py2.py3-none-any.whl (1.5MB)
100% |████████████████████████████████| 1.5MB 63kB/s
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-20.1
應該是更新之后才可以使用pip安裝其他模塊
————————————————
原文鏈接:https://blog.csdn.net/qq_44177538/article/details/106212023
浙公網安備 33010602011771號