查看当前的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