C:\Users\HP>pip
Traceback (most recent call last):
File "C:\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Scripts\pip.exe_main_.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
你能告诉我如何在Windows 11上解决这个问题吗?
您的Python发行版没有预装pip。尝试使用以下方法安装pip: https://pip.pypa.io/en/stable/installation/
例如,在Windows上,您可以运行
py -m ensurepip --upgrade