1.用腳本安裝pip
1.1pip的安裝這里參考官網-Installation,即,輸入curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py后回車,如下:
[root@cdw-lj /]# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
1.2然后,輸入python get-pip.py之后回車,如下:
[root@cdw-lj /]# python get-pip.py #會看到Successfully.....等安裝成功的字樣
2.yum安裝pip
2.1 首先安裝拓展源
yum -y install epel-release
2.2安裝pip
yum -y install python-pip