The pyjq pip package is awesome however you’ll need to install system dependencies that are mentioned in brief leaving you to wonder which packages we actually need - just gimme the stuff already!

Ubuntu 20.04


# The python3-pip package installs several pyjq dependencies for us already ...
[email protected]:~$ sudo apt-get install python3-pip

# Install the missing dependencies to enable a pyjq install
[email protected]:~$ sudo apt-get install autoconf libtool

# Do it
[email protected]:~$ pip install --user pyjq
Collecting pyjq
  Downloading pyjq-2.5.2.tar.gz (2.0 MB)
     |████████████████████████████████| 2.0 MB 5.8 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: pyjq
  Building wheel for pyjq (PEP 517) ... done
  Created wheel for pyjq: filename=pyjq-2.5.2-cp38-cp38-linux_x86_64.whl size=459047 sha256=3d3fa68d52068940296f5a6b35583d948b2bb478094118736dfc2d018cd8b318
  Stored in directory: /home/user/.cache/pip/wheels/ab/36/d2/0f120c3cea3ec18a988f9ecbd73299107eb7dfcac6a5ad3dc0
Successfully built pyjq
Installing collected packages: pyjq
Successfully installed pyjq-2.5.2

There are a handful of online mentions with people stating they have issues with this -