简体   繁体   中英

unable to install JQ via PIP

I am trying to install JQ via PIP in python.

pip install jq

I am getting following error.

Failed building wheel for jq

在此输入图像描述

I am facing same issue while install pyjq.

pip install pyjq

Failed building wheel for pyjq

在此输入图像描述

It doesn't appear that jq supports Windows; it says it requires gcc & libtool, which generally means a Unix-like environment.

Like you I had a difficult time installing 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. 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.

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?).

Then and only then did finally pip install jq work

I have experienced same issues as OP. Although in my case (Debian Stretch 9.5) it turned out dh-autoreconf package was missing. After installing it, jq build finished successfully.

在Ubuntu 18.04上,我需要在我的pip install pyjq完成之前apt-get install autoconf libtool

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM