目录

1 前言

2 环境准备

3 安装 docker-compose

4 验证 docker-compose

5 troubleshooting

    5.1 jsonschema 版本不匹配

    5.2 cffi 版本不匹配

    5.3 dnspython 版本不匹配

    5.4 python-ldap 版本不匹配

    5.5  subprocess32 卸载失败


1 前言

        本章采用 pip 安装 docker-compose 1.25.0 版本。


2 环境准备

yum install -y epel-release 

yum install -y openldap-devel 

yum install -y python-devel 

yum install -y python-pip

pip install --upgrade pip


3 安装 docker-compose

pip install docker-compose


4 验证 docker-compose

docker-compose version

4932D996-8506-460b-B5CC-8744534BABB5.png


5 troubleshooting

5.1 jsonschema 版本不匹配

ERROR: jsonschema 3.2.0 has requirement six>=1.11.0, but you'll have six 1.9.0 which is incompatible.

        执行如下语句:

pip install six --user -U

pip install ipython --user -U

5.2 cffi 版本不匹配

ERROR: cryptography 2.8 has requirement cffi!=1.11.3,>=1.8, but you'll have cffi 1.6.0 which is incompatible.

        执行如下语句:

pip install cffi --user -U

5.3 dnspython 版本不匹配

ERROR: ipapython 4.6.5 has requirement dnspython>=1.15, but you'll have dnspython 1.12.0 which is incompatible.

        执行如下语句:

pip install dnspython --user -U

5.4 python-ldap 版本不匹配

ERROR: ipapython 4.6.5 has requirement python-ldap>=3.0.0b1, but you'll have python-ldap 2.4.15 which is incompatible.

        执行如下语句:

pip install --upgrade python-ldap --user -U

5.5  subprocess32 卸载失败

ERROR: Cannot uninstall 'subprocess32'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

        执行如下语句:

pip install docker-compose --ignore-installed subprocess32