前置依赖
yum -y install epel-release
安装 pip3,python3 自带 pip3
dnf install -y python3
配置 pip3 的国内 pip 源,编辑 ~/root~/.pip/pip.conf
文件(如果不能存在请自行创建),配置内容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
安装
pip3 install docker-compose
国内的pip源,如下: