目錄
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