安装Docker-Compose之前,请先安装 python-pip
检查linux有没有安装python-pip包,终端执行 pip -V
若没有,则 yum -y install epel-release
执行成功,再执行yum -y install python-pip
对安装好的pip进行升级 pip install --upgrade pip
依赖环境安装好后,开始安装docker-compose
pip install docker-compose
检查docker-compose 安装:docker-compose -version
我在安装中出现如下错误:
Cannot uninstall ‘requests’. 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 requests
再次执行: pip install docker-compose