操作系统环境版本
$ rpm -q centos-release
centos-release-7-3.1611.el7.centos.x86_64
docker-compose需使用pip安装
安装命令
yum -y install epel-release
yum -y install python-pip
pip install --upgrade pip
pip install docker-compose
安装python-pip遇到的错误
--> Processing Dependency: python(abi) = 2.6 for package: python-pip-7.1.0-1.el6.noarch
--> Finished Dependency Resolution
Error: Package: python-pip-7.1.0-1.el6.noarch (epel)
Requires: python(abi) = 2.6
Installed: python-2.7.5-68.el7.x86_64 (@base)
python(abi) = 2.7
python(abi) = 2.7
Available: python34-3.4.8-1.el6.i686 (epel)
python(abi) = 3.4
混合安装了el6与el7的package,可以尝试下面的方法解决:
yum clean all
yum remove epel-release
yum install epel-release --enablerepo=extras
然后重新执行docker-compose的安装命令
网友评论