在使用Docker的时候,有一个工具叫做 docker-compose,安装它的前提是要安装pip工具.
1、首先检查Linux有没有安装Python-pip包,直接执行 yum install python-pip
![](https://img-blog.csdn.net/20161031173952962)
2、没有python-pip包就执行命令 yum -y install epel-release
![](https://img-blog.csdn.net/20161031174109603)
(3)、执行成功之后,再次执行yum install python-pip
![](https://img-blog.csdn.net/20161031174154901)
![](https://img-blog.csdn.net/20161031174219464)
(4)、对安装好的pip进行升级 pip install --upgrade pip
![](https://img-blog.csdn.net/20161031174334791)
至此,pip工具就安装好了。