#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
# 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%..LocalProgramsPythonPython310Scripts"
# OR find the path and set it:
FOR /F %g IN ('dir /b %appdata%..LocalProgramsPython ^| findstr /i Python') do (SET VAR=%g) && cd %appdata%..LocalProgramsPython\%VAR%Scripts
setx PATH "%PATH%;%cd%"
## To install Pip, first download get-pip.py from:
https://bootstrap.pypa.io/get-pip.py
## Then run the following command in the command line
## in the folder where the file has been saved.
python get-pip.py
Download the script, from https://bootstrap.pypa.io/get-pip.py.
Open a terminal/command prompt, cd to the folder containing the get-pip.py file and run:
$ python get-pip.py
"""to install a python module just use pip command"""
"""open cmd as administrator and write this command"""
pip install <package-name>
"""for ex. pip install pandas"""
##before writing command first change environment variable to your pip file location