安裝Docker-compse 需要先安裝pip3
1.安裝pip3
apt-get install python3-pip
2.升級(jí)PIP3
pip3 install --upgrade pip --default-timeout=100 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
3.檢測(cè)其它依賴并安裝
apt-get install gcc libffi-devel python-devel openssl-devel -y
4.安裝docker-compose
pip3 --default-timeout=100 install docker-compose --ignore-installed requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
或
pip3 --default-timeout=100 install docker-compose --ignore-installed requests -i https://mirrors.aliyun.com/pypi/simple
5.安裝出現(xiàn)問(wèn)題需要卸載
pip3 uninstall docker-py dockerdocker-compose
6.其它
pip install --ignore-installed requests