问题描述:
安装docker compose 时报错 Running setup.py install for subprocess32 ... error
Running setup.py install for subprocess32 ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-GfNoI1/subprocess32/setup.py'"'"'; __file__='"'"'/tmp/pip-install-GfNoI1/subprocess32/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dzz6zU/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/subprocess32 cwd: /tmp/pip-install-GfNoI1/subprocess32/ Complete output (62 lines): /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) running install running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying subprocess32.py -> build/lib.linux-x86_64-2.7 running build_ext running build_configure checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking sys/cdefs.h usability... yes checking sys/cdefs.h presence... yes checking for sys/cdefs.h... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking sys/syscall.h usability... yes checking sys/syscall.h presence... yes checking for sys/syscall.h... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for pipe2... yes checking for setsid... yes checking whether dirfd is declared... yes configure: creating ./config.status config.status: creating _posixsubprocess_config.h building '_posixsubprocess32' extension creating build/temp.linux-x86_64-2.7 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o _posixsubprocess.c:16:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-GfNoI1/subprocess32/setup.py'"'"'; __file__='"'"'/tmp/pip-install-GfNoI1/subprocess32/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dzz6zU/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/subprocess32 Check the logs for full command output.
处理方法:
yum install python-devel
安装docker compose:
#docker docker compose 相关命令 yum install docker-io service docker start yum -y install epel-release yum -y install python-pip pip install --upgrade pip yum install python-devel pip install docker-compose docker-compose version
捐助开发者
在兴趣的驱动下,写一个免费
的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信 以及扣扣群),没钱捧个人场,谢谢各位。
个人主页:http://knight-black-bob.iteye.com/
谢谢您的赞助,我会做的更好!
相关推荐
【标题】"docker-compose_install.tar.gz" 是一个针对 CentOS 7 的 Docker 和 Docker Compose 的离线一键部署包。这个压缩文件提供了在没有网络连接或者网络环境受限的情况下,安装 Docker 和 Docker Compose 的便捷...
docker-compose-2.20.2安装包
在IT行业中,Docker和Docker Compose是两个极为重要的工具,它们在容器化应用程序部署和管理方面扮演着核心角色。本文将详细讲解如何通过二进制方式安装Docker 19.03.14及其配套的Docker Compose,并讨论它们的主要...
docker-compose version 1.29.2, build 5becea4 docker-py version: 5.0.0 CPython version: 3.7.10 OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
docker-compose2.24.5版本
该文件为docker-compose的二进制文件,解压之后就能放到/usr/bin/下就能直接使用。
Docker Compose是Docker生态系统中的一个重要组成部分,它允许用户通过一个YAML文件来定义和运行多容器的应用。这个压缩包包含的是针对Linux系统的Docker Compose安装包,提供了两个不同版本:V1.29.2和V2.2.2。这两...
https://github.com/docker/compose/releases/tag/v2.24.6 eca30ae32dc451f9e6d6c8ddce078a76f23b355c3ca0ab391d58f59e87c0d310 *docker-compose-linux-x86_64
x86(amd64)架构的docker(v24.0.4)和docker-compose(v2.20.2)离线安装包;适用于centos、ubuntu、redhat的linux系统
Docker Compose是Docker生态系统中的一个重要组成部分,它允许用户通过一个YAML配置文件来定义和运行多个Docker容器。这个“docker-compose-V2.20.2.tar.gz”文件是一个离线安装包,适用于那些可能无法直接访问...
docker版本26.1.2,docker-compose版本v2.11.0。 1.把docker_compose_install-new文件夹放在任意路径; 2.chmod -R 777 install.sh 3.执行./install.sh 兼容:CentOS7.6、麒麟V10服务器版。
在IT行业中,Docker Compose是一个非常实用的工具,它允许开发者通过一个YAML文件(通常命名为`docker-compose.yml`)来定义和运行多容器的应用。在这个“docker compose管理mysql资料.zip”压缩包中,我们可以预见...
软件:docker-compose-Linux-x86_64 版本:1.27.4 说明:由于github下载速度非常不稳定,所以这里放一个备份,方便大家取用。
1)解压后将docker-compose上传至服务器/usr/bin目录下 2)chmod + 755 docker-compose 3)docker-compose可以直接运行了
3. **构建Docker Compose**:进入源码目录,使用`python setup.py bdist_wheel`命令创建一个可分发的轮子(wheel)包。 4. **安装轮子包**:使用`pip install dist/docker-compose-*.whl`将构建的包安装到系统环境中...
附件是docker-compose版本为1.25.5, build 8a1c60f6离线安装包和安装说明.
Linux x86 架构离线安装docker环境; Docker 版本:20.10.6 ...解压后,直接执行 docker20install.sh 脚本,可自动安装 Docker 和 Docker Compose。 适用于 X86 架构的 Linux 环境,如 Centos、麒麟 V10 等系统;
docker-compose-Linux-1.29.2原文件及安装程序
docker-compose-env.yml
docker离线安装包,包含docker-19.03.9.tgz,docker-20.10.8.tar,docker-compose-linux-x86_6