1. First check whether the python-pip package is installed in Linux, and execute yum install python-pip directly
提示:Cannot find a valid baseurl for repo: base/7/x86_64
(Here, my server can't connect to the Internet, I need to configure dns, vi /etc/resolv.conf, add servername 8.8.8.8 and the second line servername 4.4.4.4)
2. Hint: There is no package python-pip available. Just execute the command yum -y install epel-release. Then execute yum install python-pip
3. Upgrade the installed pip pip install --upgrade pip