先安装 pip ,检查是否已有: 

pip -V

报错:

-bash: pip: command not found

安装  pip :

sudo apt install python-pip

升级pip

pip install --upgrade pip

安装docker-compose

pip install docker-compose

查看docker-compose版本

docker-compose -version

ubuntu docker-compose: command not found_bash