Have you tried using get-pip.py to reinstall pip?
I would recommend reading about get-pip.py first before doing this, but the process shouldn't be difficult.
https://pip.pypa.io/en/stable/installation/
- Download get-pip.py (assuming windows 11, powershell)
wget -uri https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py
alternatively you could use save as the file and save it to your machine.
- Install pip
python get-pip.py
Full output:
PS C:\Users\Jerem> python get-pip.py
Collecting pip
Using cached pip-23.3.2-py3-none-any.whl.metadata (3.5 kB)
Using cached pip-23.3.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.3.2
Uninstalling pip-23.3.2:
Successfully uninstalled pip-23.3.2
Successfully installed pip-23.3.2
Test that its working
PS C:\Users\Jerem> python -m pip --version
pip 23.3.2 from C:\Users\Jerem\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)
Answer from Jeremiah Ritchey on Stack OverflowI'm about a week into my Python journey (primarily Data Camp). I want to utilize packages, which requires pip to be installed first if I'm not mistaken.
Most of my internet foraging has led me to believe pip is already included, how to check if pip is already installed, importing pip, ensurepip and get-pip.py. However I'm only getting syntax errors and dead ends, without the knowledge or vocabulary to fully understand why.
Any suggestions on where I can go from here?
python - How to install pip back into a windows PowerShell and Command Prompt list of commands? - Stack Overflow
'pip' is not recognized as an internal or external command
pip install windows-curses does not work in Windows 11
Beginner trying to install/import pip on Windows 11
Videos
» pip install pip