No module named 'pip',Win10下的PIP 不能用了

Traceback (most recent call last):
  File "d:\program files\python\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\program files\python\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Program Files\Python\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'

 python -m ensurepip 

Looking in links: c:\Users\user\AppData\Local\Temp\tmpvduhp32t
Requirement already satisfied: setuptools in d:\program files\python\lib\site-packages (47.1.0)
Processing c:\users\user\appdata\local\temp\tmpvduhp32t\pip-20.1.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-20.1.1

  搞定了!

 

posted @ 2021-04-09 15:28  华小电  阅读(152)  评论(0编辑  收藏  举报