首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >卡在这里了?

卡在这里了?

提问于 2020-01-06 17:24:07
回答 1关注 0查看 1.1K

Running setup.py install for subprocess32 ... erro

ERROR: Command errored out with exit status 1:

command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Y5Yico/subprocess32/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Y5Yico/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-LfnaEE/install-record.txt --single-version-externally-managed --compile

cwd: /tmp/pip-install-Y5Yico/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-Y5Yico/subprocess32/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Y5Yico/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-LfnaEE/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

截图信息
截图信息

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档