前言:
- 之前用的好好的,隔了一段时间再用发现突然报错:
步骤
- 下载pip:
yum -y install epel-release
yum -y install python-pip
pip install docker-compose
- 此时报错:“You are using pip version 8.1.1, however version 22.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.” - 按提示执行:
pip install --upgrade pip’ command.
无效,需要手动升级pip
# 升级pip:
sudo wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python get-pip.py
pip -V
- 再次执行:
pip install docker-compose
- 检查是否成功:
docker-compose -version