title: "pip install jq" generates errors on Mac and Windows
body: <p>Duplicate of this <a href="https://stackoverflow.com/questions/39785890/unable-to-install-jq-via-pip">issue</a>, but the first answer there is wrong (<code>jq</code> is supported on Windows) and the second refers to <code>brew</code> so I'm guessing is for Mac.</p>
  
  <h3>Windows</h3>
  
  <p>I am trying to install <code>jq</code> for python from the Windows command line, but get the following errors, possibly due to a missing <code>temp\pip-build-rtnhmg\jq\onig-install-5.9.6</code> file:
  <code>error: [Error 2] The system cannot find the file specified</code>
  ... and ...</p>
  
  <blockquote>
    <p><code>Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\&lt;USERNAME&gt;\\appdata\\local\\temp\\pip-build-rtnhmg\\jq\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\&lt;USERNAME&gt;\appdata\local\temp\pip-khvjht-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\&lt;USERNAME&gt;\appdata\local\temp\pip-build-rtnhmg\jq\</code></p>
  </blockquote>
  
  <p>Does anyone know what's gone wrong here?  Searches on StackOverflow and Google aren't giving me much to go on, and I'm not great with Windows and still new to python/pip.</p>
  
  <p>Here is the full text, minus username:</p>
  
  <pre><code>Microsoft Windows [Version 10.0.14393]
  (c) 2016 Microsoft Corporation. All rights reserved.
  
  C:\WINDOWS\system32&gt;pip install jq
  Collecting jq
    Using cached jq-0.1.6.tar.gz
  Building wheels for collected packages: jq
    Running setup.py bdist_wheel for jq ... error
    Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\&lt;USERNAME&gt;\\appdata\\local\\temp\\pip-build-rtnhmg\\jq\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\&lt;USERNAME&gt;\appdata\local\temp\tmpuvrf_upip-wheel- --python-tag cp27:
    running bdist_wheel
    running build
    running build_ext
    Executing: ./configure CFLAGS=-fPIC --prefix=c:\users\&lt;USERNAME&gt;\appdata\local\temp\pip-build-rtnhmg\jq\onig-install-5.9.6
    error: [Error 2] The system cannot find the file specified
  
    ----------------------------------------
    Failed building wheel for jq
    Running setup.py clean for jq
  Failed to build jq
  Installing collected packages: jq
    Running setup.py install for jq ... error
      Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\&lt;USERNAME&gt;\\appdata\\local\\temp\\pip-build-rtnhmg\\jq\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\&lt;USERNAME&gt;\appdata\local\temp\pip-khvjht-record\install-record.txt --single-version-externally-managed --compile:
      running install
      running build
      running build_ext
      Executing: ./configure CFLAGS=-fPIC --prefix=c:\users\&lt;USERNAME&gt;\appdata\local\temp\pip-build-rtnhmg\jq\onig-install-5.9.6
      error: [Error 2] The system cannot find the file specified
  
      ----------------------------------------
  Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\&lt;USERNAME&gt;\\appdata\\local\\temp\\pip-build-rtnhmg\\jq\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\&lt;USERNAME&gt;\appdata\local\temp\pip-khvjht-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\&lt;USERNAME&gt;\appdata\local\temp\pip-build-rtnhmg\jq\
  </code></pre>
  
  <p>Trying to install pyjq instead generates the same errors.</p>
  
  <p>I'm not married to jq: I just need to format json data in python, and jq does a great job on the command line.  If there are other python packages I should try instead, please feel free to recommend them.  As mentioned above though, pyjq is failing install with the same errors.</p>
  
  <p><strong>Further details / steps taken:</strong></p>
  
  <ul>
  <li>I am on Windows 10 and have installed python 2.7.13, <code>setuptools</code> and <code>pip</code> using <a href="http://docs.python-guide.org/en/latest/starting/install/win/" rel="noreferrer">the steps from here</a> ... no issues noted.</li>
  <li>Using pip, I have successfully installed other python packages such as request and jira ... no issues noted.</li>
  <li>Using chocolatey I have successfully installed jq for the command line, following <a href="https://github.com/stedolan/jq/wiki/Installation" rel="noreferrer">these steps</a> ... no issues noted.</li>
  <li>I have tried using regular permissions, running cmd as administrator, starting a new cmd session, restarting the PC - but get the same errors.</li>
  <li>Trying to install pyjq (<code>pip install pyjq</code>) generates the same errors.</li>
  <li><p>Tried <code>pip install jq</code> on a Mac and got similar errors:</p>
  
  <blockquote>
    <p><code>Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/v5/4x0py0ns2td1h69vgllx7dpr0000gn/T/pip-build-DyMoT4/jq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/v5/4x0py0ns2td1h69vgllx7dpr0000gn/T/pip-i6UKvt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/v5/4x0py0ns2td1h69vgllx7dpr0000gn/T/pip-build-DyMoT4/jq/</code></p>
  </blockquote></li>
  <li><p>for the Mac, followed the steps suggested from <a href="https://stackoverflow.com/questions/31498495/error-when-installing-using-pip">here</a> and successfully installed <code>setuptools</code> as suggested, but <code>pip install jq</code> still fails with the same error.</p></li>
  </ul>