安装Docker-compse 需要先安装pip3
1.安装pip3
apt-get install python3-pip
2.升级PIP3
pip3 install --upgrade pip --default-timeout=100 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
3.检测其它依赖并安装
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.安装出现问题需要卸载
pip3 uninstall docker-py dockerdocker-compose
6.其它
pip install --ignore-installed requests