#Install pip for python 2.7
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
#Install pip3
sudo apt install python3-pip
#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 pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
#install pip
sudo python2.7 get-pip.py
py -m ensurepip --upgrade
wget https://bootstrap.pypa.io/get-pip.py | python get-pip.py
python -m pip install --upgrade pip ## work like a charm
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; python3 get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pyCopy
py get-pip.py --user
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
#Python comes with an ensurepip module, which can install pip in a Python environment.
python -m ensurepip --upgrade
python -m pip install SomePackage==1.0.4 # specific version
python -m pip install "SomePackage>=1.0.4" # minimum version
curl -sSl https://bootstrap.pypa.io/get-pip.py | python
# in Powershell, e.g. install pandas
pip install pandas
# in Bash
sudo apt install python3-pandas
# To install a library
# In command prompt:
pip install <PACKAGE_NAME>
# To import a library
# In python:
import <PACKAGE_NAME>
py -m pip download [options] <requirement specifier> [package-index-options] ...
py -m pip download [options] -r <requirements file> [package-index-options] ...
py -m pip download [options] <vcs project url> ...
py -m pip download [options] <local project path> ...
py -m pip download [options] <archive url/path> ...
python -m pip download [options] <requirement specifier> [package-index-options] ...
python -m pip download [options] -r <requirements file> [package-index-options] ...
python -m pip download [options] <vcs project url> ...
python -m pip download [options] <local project path> ...
python -m pip download [options] <archive url/path> ...
py -m pip install [options] <requirement specifier> [package-index-options] ...
py -m pip install [options] -r <requirements file> [package-index-options] ...
py -m pip install [options] [-e] <vcs project url> ...
py -m pip install [options] [-e] <local project path> ...
py -m pip install [options] <archive url/path> ...
"""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
Pip is a replacement for easy_install.
Packages installs the packages default under site-packages.