WARNING: You are using pip version 20.1.1; however, version 20.3.3 is availa

WARNING: You are using pip version 20.1.1; however, version 20.3.3 is availa

如果直接用下面命令更新pip版本:

python -m pip install --upgrade pip

会把原先的卸载了导致出现错误:
WARNING: You are using pip version 20.1.1; however, version 20.3.3 is availa_第1张图片
如何解决:
用下面两条命令修复解决

python -m ensurepip
python -m pip install --upgrade pip

记得命令行给管理员权限运行安装,否则可能遇到权限不够安装失败

参考文章: 解决ModuleNotFoundError: No module named 'pip’问题

你可能感兴趣的:(python,python,pip)