xxxxxxxxxx
#Upgrade failed for PIP after uninstalling current version?
#PIP wasn't installed at all?
#get to ./dir/to/python/Scripts
#step 1
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
#step-2
python get-pip.py
xxxxxxxxxx
# install system-wide windows (install python first)
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
py get-pip.py
# set path (example):
setx PATH "%PATH%;%appdata%\..\Local\Programs\Python\Python310\Scripts"
# OR find the path and set it:
FOR /F %g IN ('dir /b %appdata%\..\Local\Programs\Python\ ^| findstr /i Python') do (SET VAR=%g)
cd %appdata%\..\Local\Programs\Python\%VAR%\Scripts
setx PATH "%PATH%;%cd%"
xxxxxxxxxx
#Python comes with an ensurepip module, which can install pip in a Python environment.
python -m ensurepip --upgrade
xxxxxxxxxx
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; python3 get-pip.py
xxxxxxxxxx
python -m pip install SomePackage==1.0.4 # specific version
python -m pip install "SomePackage>=1.0.4" # minimum version
xxxxxxxxxx
# Install python
# create a file on desktop and name it get-pip.py
# copy all the content from here https://bootstrap.pypa.io/get-pip.py
# paste on the file you created
# open cmd type
cd Desktop
get-pip.py
# happy coding !