檢查安裝pip
1.安裝依賴(lài)環(huán)境
$?sudo yum -y install epel-release
2.安裝 python-pip
$?sudo yum install python-pip
3.升級(jí)pip到最新版本
$ sudo?pip install --upgrade pip
安裝docker-compose
$ sudo pip install docker-compose
注意:
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.
報(bào)以上錯(cuò)誤解決方式:
pip install docker-compose --ignore-installed requests