# pip安装
[root@localhost bak]# wget 'https://bootstrap.pypa.io/get-pip.py'
--2016-04-04 17:43:40-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io... 185.31.19.175
Connecting to bootstrap.pypa.io|185.31.19.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1522812 (1.5M) [text/x-python]
Saving to: “get-pip.py”
100%[=========================================================================>] 1,522,812 671K/s in 2.2s
2016-04-04 17:44:03 (671 KB/s) - “get-pip.py” saved [1522812/1522812]
[root@localhost bak]# python get-pip.py
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting pip
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x386b090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pip/
/tmp/tmpwb4cGz/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
/tmp/tmpwb4cGz/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 455kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 973kB/s
Collecting argparse (from wheel)
Downloading argparse-1.4.0-py2.py3-none-any.whl
Installing collected packages: pip, argparse, wheel
Found existing installation: argparse 1.2.1
Uninstalling argparse-1.2.1:
Successfully uninstalled argparse-1.2.1
Successfully installed argparse-1.4.0 pip-8.1.1 wheel-0.29.0
/tmp/tmpwb4cGz/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
[root@localhost bak]#