Install pip
To install or upgrade pip, securely download get-pip.py.
$ wget https://bootstrap.pypa.io/get-pip.py
Then run the following (which may require administrator access):
$ python get-pip.py
root@ubuntu:~# wget https://bootstrap.pypa.io/get-pip.py
--2014-07-04 04:19:54-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 103.245.222.175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|103.245.222.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1340903 (1.3M) [text language="/x-python"][/text]
Saving to: `get-pip.py'
100%[======================================>] 1,340,903 119K/s in 13s
2014-07-04 04:20:09 (102 KB/s) - `get-pip.py' saved [1340903/1340903]
root@ubuntu:~# python get-pip.py
Downloading/unpacking pip
Downloading pip-1.5.6-py2.py3-none-any.whl (1.0MB): 1.0MB downloaded
Downloading/unpacking setuptools
Downloading setuptools-5.3-py2.py3-none-any.whl (554kB): 554kB downloaded
Installing collected packages: pip, setuptools
Successfully installed pip setuptools
Cleaning up...
Upgrade pip
$ pip install -U pip
Using Package Managers
On Linux, pip will generally be available for the system install of python using the system package manager, although often the latest version will be unavailable.
$ sudo apt-get install python-pip
Useful pip command
$ pip install requests $ pip search xml $ pip show beautifulsoup4 $ pip uninstall requests
Useful pip link
https://pip.pypa.io/en/latest/quickstart.html
https://pypi.python.org/pypi/pip/
Leave a Reply
You must be logged in to post a comment.