error: command 'gcc' failed with exit status 1处理

root@node06 job_script 09:16:06 # pip3 install impyla
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting impyla
Using cached https://files.pythonhosted.org/packages/7a/64/a9154c24295fe563db393308ea82f16fa1bc44d16f4c99984930571b4bf9/impyla-0.18.0-py2.py3-none-any.whl
Requirement already satisfied: thrift-sasl==0.4.3 in /usr/local/lib/python3.6/site-packages (from impyla)
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from impyla)
Collecting bitarray (from impyla)
Using cached https://files.pythonhosted.org/packages/82/30/68a3ee41e6abbb521a3418fb25a7755127a1d6bf4604028bb404f833b2fc/bitarray-2.7.3.tar.gz
Requirement already satisfied: thrift==0.16.0 in /usr/local/lib/python3.6/site-packages (from impyla)
Requirement already satisfied: pure-sasl>=0.6.2 in /usr/local/lib/python3.6/site-packages (from thrift-sasl==0.4.3->impyla)
Installing collected packages: bitarray, impyla
Running setup.py install for bitarray ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-lq6r71et/bitarray/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-0nsbhvju-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/bitarray
copying bitarray/init.py -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/test_bitarray.py -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/test_util.py -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/util.py -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/bitarray.h -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/pythoncapi_compat.h -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/test_data.pickle -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/py.typed -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/init.pyi -> build/lib.linux-x86_64-3.6/bitarray
copying bitarray/util.pyi -> build/lib.linux-x86_64-3.6/bitarray
running build_ext
building 'bitarray._bitarray' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/bitarray
gcc -pthread -Wno-unused-result -Wsign-compare -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/python3.6m -c bitarray/_bitarray.c -o build/temp.linux-x86_64-3.6/bitarray/_bitarray.o
bitarray/_bitarray.c:12:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1

根据网上的资料,执行一下,结果找不到

yum install paython-devel

Successfully installed bitarray-2.7.3 impyla-0.18.0
root@node06 job_script 09:23:26 # yum install paython-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.ustc.edu.cn
  • epel: mirror.01link.hk
  • extras: ftp.sjtu.edu.cn
  • updates: mirrors.ustc.edu.cn
    No package paython-devel available.
    Error: Nothing to do

自行去yum库查找

yum search python | grep devel

然后找到一下,执行之后就可以了

yum install python3-devel.x86_64

你可能感兴趣的:(error: command 'gcc' failed with exit status 1处理)