Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

I am facing same issue while install pyjq.

pip install pyjq

Failed building wheel for pyjq

enter image description here

like image 665
devanathan Avatar asked Sep 30 '16 07:09

devanathan


3 Answers

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

like image 86
Tosser1872 Avatar answered Oct 22 '22 04:10

Tosser1872


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

like image 5
cco Avatar answered Oct 22 '22 03:10

cco


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

like image 1
Antoine Avatar answered Oct 22 '22 03:10

Antoine