CentOS7安装pip

当使用pip命令安装工具时,如果出现了 pip command not found这样的问题,代表没有安装pip工具
这里提供两种方式安装pip工具

用脚本安装pip

pip的安装这里参考官网-Installation,即,输入curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py后回车,如下:

[root@server-01 ~]# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

当前目录会增加一个新文件:get-pip.py

然后,输入python get-pip.py之后回车,执行这个python文件,如下:

[root@server-01 ~]# python get-pip.py

yum安装pip

首先安装拓展源

[root@server-01 ~]# yum -y install epel-release

安装pip

[root@server-01 ~]# yum -y install python-pip
原文地址:https://www.cnblogs.com/mingyue5826/p/11758630.html