目录
python
1 前言
docker
2 环境准备json
3 安装 docker-composeide
4 验证 docker-composeui
5 troubleshootingspa
5.1 jsonschema 版本不匹配blog
5.2 cffi 版本不匹配dns
5.3 dnspython 版本不匹配ip
5.4 python-ldap 版本不匹配rem
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
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