小编ris*_*ani的帖子

在centos中安装jq时遇到问题

在centos上安装jq时,我遇到了一个问题.我运行了以下命令:

yum groupinstall "Development Tools"
yum install autoconf automake libtool python
Run Code Online (Sandbox Code Playgroud)

之后我使用了pip install jq,我面临着这样的错误:

jq.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
                     ^
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-akuaZu/jq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read                                                                                        ().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" 
instal --record /tmp/pip-04CW9h-record/install-record.txt --single-version-externally  
-managed --compile" failed with error code 1 in /tmp/pip-build-akuaZu/jq/
Run Code Online (Sandbox Code Playgroud)

谁能帮我??

centos jq

17
推荐指数
3
解决办法
4万
查看次数

标签 统计

centos ×1

jq ×1