Linux Version Upgrade:
1. First confirm that the Python version that comes with the Linux operating system is the same as the version you need
All Python versions are selected for download at https://www.python.org/ftp/python/
2, wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz to download
3. Decompression
TAR-ZXVF python-2.7.11.tgz
Enter the Python-2.7.11 directory input./configure
Make
Make install
4. Whether to view the Python version or the system default version at this time
Execution: mv/usr/bin/python/usr/bin/python2.6
Ln-s/usr/local/bin/python2.7/usr/bin/python
Review the version that has been updated to the one you want to install again
PIP Installation
1. A get-pip.py is provided in Python; here's the address.
https://bootstrap.pypa.io/get-pip.py
2. Perform Curl https://bootstrap.pypa.io/get-pip.py under Linux | Python for download and installation
It's so convenient to pack whatever bag you want.
Pip Install XXX
Upgrade Python and install Pip under Linux