Python 3.9 pip run error
---------------------------------------------------------------------------------------
c:\dev>pip
Traceback (most recent call last):
File "C:\dev\tools\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\dev\tools\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\dev\tools\Python\Python39\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
---------------------------------------------------------------------------------------
> python -m ensurepip
---------------------------------------------------------------------------------------
c:\dev>python -m ensurepip
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
Looking in links: c:\Users\bada\AppData\Local\Temp\tmp6x4jr4tb
Requirement already satisfied: setuptools in .\tools\python\python39\lib\site-packages (58.1.0)
Processing c:\users\bada\appdata\local\temp\tmp6x4jr4tb\pip-21.2.4-py3-none-any.whl
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
Installing collected packages: pip
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
Successfully installed pip-21.2.4
---------------------------------------------------------------------------------------
> python -m pip install --upgrade pip
---------------------------------------------------------------------------------------
c:\dev>python -m pip install --upgrade pip
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
Requirement already satisfied: pip in .\tools\python\python39\lib\site-packages (21.2.4)
Collecting pip
Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
Installing collected packages: pip
Attempting uninstall: pip
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
Found existing installation: pip 21.2.4
Uninstalling pip-21.2.4:
Successfully uninstalled pip-21.2.4
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
Successfully installed pip-21.3.1
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\dev\tools\python\python39\lib\site-packages)
---------------------------------------------------------------------------------------