gpt4 book ai didi

python - 无法为 pyjq 构建轮子 |没有这样的文件或目录 : 'autoreconf' : 'autoreconf'

转载 作者:行者123 更新时间:2023-12-05 01:31:34 24 4
gpt4 key购买 nike

我正在使用 docker 将 lambda 函数部署到 aws,lambda 函数正在使用 pyjq 库,它需要安装这些库:flex bison libtool make autoconf就是说,建分支的时候出错了。

没有那个文件或目录:'autoreconf': 'autoreconf'

无法为使用 PEP 517 且无法直接安装的 pyjq 构建轮子

  /usr/bin/mkdir -p '/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig_install/include'

/usr/bin/install -c -m 644 oniguruma.h oniggnu.h onigposix.h '/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig_install/include'

make[2]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/src'

make[1]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/src'

Making install in test

make[1]: Entering directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/test'

make[2]: Entering directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/test'

make[2]: Nothing to be done for `install-exec-am'.

make[2]: Nothing to be done for `install-data-am'.

make[2]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/test'

make[1]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/test'

Making install in sample

make[1]: Entering directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/sample'

make[2]: Entering directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/sample'

make[2]: Nothing to be done for `install-exec-am'.

make[2]: Nothing to be done for `install-data-am'.

make[2]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/sample'

make[1]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0/sample'

make[1]: Entering directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0'

make[2]: Entering directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0'

/usr/bin/mkdir -p '/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig_install/bin'

/usr/bin/install -c onig-config '/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig_install/bin'

/usr/bin/mkdir -p '/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig_install/lib/pkgconfig'

/usr/bin/install -c -m 644 oniguruma.pc '/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig_install/lib/pkgconfig'

make[2]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0'

make[1]: Leaving directory `/tmp/pip-install-6ckq9ir8/pyjq/dependencies/onig-6.9.0'

error: [Errno 2] No such file or directory: 'autoreconf': 'autoreconf'

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

ERROR: Failed building wheel for pyjq

ERROR: Could not build wheels for pyjq which use PEP 517 and cannot be installed directly

WARNING: You are using pip version 20.1.1; however, version 21.0.1 is available.

最佳答案

根据您日志中的错误消息错误:[Errno 2] 没有这样的文件或目录:'autoreconf':'autoreconf' 您需要安装以下先决条件。

看pyjq installation details .

You will need flex, bison (3.0 or newer), libtool, make, automake andautoconf to build jq. Install them by Homebrew, APT or other way.

您可以在此处找到准确的安装命令:https://pypi.org/project/jq/

对于 Mac:brew install autoconf automake libtool

关于python - 无法为 pyjq 构建轮子 |没有这样的文件或目录 : 'autoreconf' : 'autoreconf' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66107853/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com