Python:找不到pip模块

ModuleNotFoundError: No module named 'pip'

执行pip命令出现 ModuleNotFoundError: No module named 'pip'

C:\Users\zy7y>pip list
Traceback (most recent call last):
  File "d:\env\python379\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\env\python379\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\env\python379\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'

解决方法

python -m ensurepip

image-20210225094528714

参考资料

https://stackoverflow.com/questions/61561218/modulenotfounderror-no-module-named-pip-python3

posted @ 2021-02-25 09:47  zy7y  阅读(1241)  评论(0编辑  收藏  举报