centos7安装pip

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
posted @ 2019-05-21 11:16  cdw0724  阅读(9729)  评论(0编辑  收藏  举报