700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > compilation terminated. error: command 'gcc' failed with exit status 1

compilation terminated. error: command 'gcc' failed with exit status 1

时间:2021-07-09 21:55:33

相关推荐

compilation terminated.     error: command 'gcc' failed with exit status 1

报错信息:

usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.opsutil/_psutil_common.c:9: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/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cbzrz90y/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cbzrz90y/psutil/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-gb02py_w/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

原因:

没有安装python3-devel包 导致报错

解决方案

yum -y install python3-devel

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。