centos7AnolisOS安装pip
正常来说应该这样:
安装epel :yum install -y epel-release
启用epel :yum install -y yum-utils && yum-config-manager --enable epel
安装pip :yum install -y python-pip
更新pip:pip install --upgrade pip
但是在安装pip的时候报错
Error: Unable to find a match: python-pip
执行:
yum --enablerepo=epel install python-pip
还是不行,继续:
1.pip的安装这里参考官网-Installation,即,输入curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py后回车,如下:
[root@localhost /]# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
2.然后,输入python get-pip.py之后回车,如下:
ERROR: This script does not work on Python 3.6 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.6/get-pip.py instead.
重新输入上步提示的路径,并继续执行
[root@cdw-lj /]# python get-pip.py #会看到Successfully.....等安装成功的字样