九析帶你一分鐘輕鬆完爆 docker-compose 安裝

目錄

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章