Some Linux versions use the python2.6 version, the two actual programs are python2.7, so python2.7 install and soft Connect, making the default Python version 2.7.
Pip is a good package management tool for Python's third-party installation library, and Pip is already installed by default on python2.7.9.
Use get-pip.py (Install script to install all the dependencies required for PIP installation)
1. Download the file first
wget https://bootstrap.pypa.io/get-pip.py
2. Run the script
Python get-pip.py
3. Review the PIP installation path and enter the following command
Import Sys
Print Sys.path
From the above view, pip file is placed under the/usr/local/bin/pip file
4. Modify the software connection using the PIP path above
Ln-s/usr/local/bin/pip/usr/bin/pip
5. Command line input PIP if the usage information of PIP appears, the installation is successful.
Python 2.7 2.6 Install PIP under co-existence