C:\WINDOWS\system32>python -m pip install -U --force pip
C:\Python39\python.exe: No module named pip
I broke my pip install trying to update it and am unsure how to fix it
C:\WINDOWS\system32>python -m pip install -U --force pip
C:\Python39\python.exe: No module named pip
I broke my pip install trying to update it and am unsure how to fix it
I think you accidentally delete pip or did not install it, my suggestion is to reinstall pip by
Download get-pip.py and "Save As" the file using right-click.
Open a command prompt as an administrator
cd
to the path where you saved the file, in my case
python get-pip.py
cd C:\Users\xyz\Downloads>
then type python get-pip.py
. It will install all required packages, such as wheel
and pip
.
To check if it was installed correctly, type pip --version
in the command line.
It seems like you do not have pip module in your system.
I recommend to download python again and you will have the newest possible version of pip. Or you may use "pip help" command
Before downloading pip firstly check pip already installed or not. For checking open cmd type
pip help
if it responce than pip installed already. For downloading pip then, run the following command in cmd to download the get-pip.py file:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
To install PIP run the following command in cmd :
python get-pip.py
for confirming whether pip installed or not than again type
pip help
if it responce than pip successfully installed.
pip --version
python -m pip install --upgrade pip