腾讯云服务器Centos7.6中docker-compose工具安装

本文详细介绍了在Linux环境下使用yum和pip安装Docker及docker-compose的过程,包括解决安装过程中遇到的cryptography和requests包冲突的问题。通过遵循本文的步骤,读者可以顺利完成Docker及其相关组件的安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Docker安装略。

1、yum -y install epel-release

2、yum -y install python-pip

3、pip install --upgrade pip

4、pip install docker-compose

4.1、pip install cffi==1.6.0

出现报错:

ERROR: cryptography 2.8 has requirement cffi!=1.11.3,>=1.8, but you'll have cffi 1.6.0 which is incompatible.
4.2、yum install python-devel

出现报错:

Running setup.py install for subprocess32 ... error
    ERROR: Command errored out with exit status 1:

4.3、pip install --ignore-installed requests

出现报错:

ERROR: 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值