ModuleNotFoundError: No module named 'pip'
执行pip命令出现 ModuleNotFoundError: No module named 'pip'
C:Userszy7y>pip list
Traceback (most recent call last):
File "d:envpython379lib
unpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:envpython379lib
unpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:envpython379Scriptspip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
解决方法
python -m ensurepip
参考资料
https://stackoverflow.com/questions/61561218/modulenotfounderror-no-module-named-pip-python3