1
2
3
4
5
6
7
Traceback (most recent call last):
File "e:\python\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "e:\python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "E:\python\Scripts\pip.exe\__main__.py", line 5, in <module>
ModuleNotFoundError: No module named 'pip'

解决方案

1
Python -m ensurepip

1
python -m pip install --upgrade pip

至此,pip命令修复完成,又可以正常使用了