Ubuntu 18安装Docker-compose

安装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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容