pip不允许我安装seccompli

2024-04-24 03:07:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试用pip安装seccomplite包。相反,我得到了这些错误。请帮忙。你知道吗

Collecting seccomplite Using cached seccomplite-0.1.0a3.tar.gz Installing collected packages: seccomplite Running setup.py install for seccomplite ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-HRGD9U/seccomplite/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-JqYhgy-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_ext building 'seccomplite' extension creating build creating build/temp.linux-x86_64-2.7 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMODULE_NAME="seccomplite" -DMAJOR_VERSION="0" -DMINOR_VERSION="1" -DDEVELOP_VERSION="0a3" -DMODULE_DESCRIPTION="lightweight libseccomp2 python bridge" -I/usr/include/python2.7 -c filter.c -o build/temp.linux-x86_64-2.7/filter.o gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory error: command 'gcc' failed with exit status 1

----------------------------------------

命令“/usr/bin/python-u-c”导入setuptools,标记化;文件='/tmp/pip-build-HRGD9U/seccomplite/设置.py';f=getattr(tokenize,'open',open)(文件);code=f.read().replace('\r\n','\n');f.close();exec(编译(code,文件),'exec'))“安装--record/tmp/pip jqygygy record/install-记录.txt--在/tmp/pip-build-HRGD9U/seccomplite/


Tags: installpippybuildsourceusrcodeopen