[英]unable to install JQ via PIP
It doesn't appear that jq supports Windows; jq似乎不支持Windows; it says it requires gcc & libtool, which generally means a Unix-like environment.
它说它需要gcc和libtool,这通常意味着类似Unix的环境。
Like you I had a difficult time installing jq 像你一样,我很难安装jq
In my attempts I had many various errors including the failed building wheel that you are getting. 在我的尝试中,我遇到了许多错误,包括你遇到的失败的建筑轮。 I assume that the problem was on my end and not that the host was temporarily down.
我认为问题出现在我的最后,而不是主持人暂时失败了。 My setup: python 2 & 3, Jupyter, brew in addition to pip.
我的设置:python 2&3,Jupyter,brew除了pip。 The problem was likely due to some lack of consistency in package links, brew doctor helped me identify which links were broken then brew link/unlink/overwrite.
问题可能是由于包装链接缺乏一致性,brew医生帮我确定哪些链接被破坏然后brew链接/取消链接/覆盖。
At anyrate I was only successful after brew uninstall jq, fixing all links, then updating brew and rebooting my system (perhaps some dependency was occupied?). 在任何时候我只是在brew卸载jq之后成功,修复所有链接,然后更新brew并重新启动我的系统(可能是某些依赖被占用?)。
Then and only then did finally pip install jq
work 然后,然后才最后
pip install jq
工作
I have experienced same issues as OP. 我遇到过与OP相同的问题。 Although in my case (Debian Stretch 9.5) it turned out
dh-autoreconf
package was missing. 虽然在我的情况下(Debian Stretch 9.5),但事实证明
dh-autoreconf
包丢失了。 After installing it, jq
build finished successfully. 安装完成后,
jq
build成功完成。
在Ubuntu 18.04上,我需要在我的pip install pyjq
完成之前apt-get install autoconf libtool
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.