Failed to install JQ via PIP

I am trying to install JQ via PIP in python.

pip install jq 

I get the following error.

Could not build wheel for jq

enter image description here

I am facing the same problem when installing pyjq.

 pip install pyjq 

Unsuccessful construction wheel for pyjq

enter image description here

+7
source share
4 answers

It does not appear that jq supports Windows; he says that it requires gcc and libtool, which usually means a Unix-like environment.

+1
source

Like me, it was hard for me to install jq

In my attempts, I had many different errors, including the failed building wheel you receive. I assume that the problem was at my end, and not that the host was temporarily down. My setup: python 2 and 3, Jupyter, brew in addition to pip. The problem was probably due to some consistency in the package links, the brew doctor helped me determine which links were broken, and then brew link / unlink / overwrite.

In any case, I was successful only after brew removing jq, fixing all the links, and then updating brew and rebooting my system (maybe some kind of dependency was taken?).

Then and only then finally pip install jq worked

+1
source

I experienced the same problems as the OP. Although in my case (Debian Stretch 9.5) it turned out that the dh-autoreconf package was missing. After installation, the jq build jq successfully.

0
source

On Ubuntu 18.04, I needed apt-get install autoconf libtool before my pip install pyjq completed.

0
source

Source: https://habr.com/ru/post/1257496/


All Articles