how do I install pyjq on python running on windows?

See original GitHub issue

easy_install install pyjq doesn’t work (nor does pip). It appears to be attempting a unix-like build process on a windows machine.

Tried cross-compiling from a unix-like environment (OSX) and seemed to start working, but it gets hung up on a missing “processenv.h” which means I’ll need an updated version of mingw64 to get that header (or edit the code to not require that header). updated mingw on darwin has no autobuild, so I’ll have to rebuild my own.

So before I embark on this potentially multi-hour experiment of modifying the build code or recompiling my cross-compiler… has anyone already done this (install pyjq on Win-based python) and if so could you please advise?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
doloopwhilecommented, Oct 26, 2018

I should release a wheel for Windows.

6reactions
aliencoder16commented, Feb 23, 2018

I am am having a problem with installing it via pip on a windows machine, this is the error I get

C:\Users\MY_USER>pip install pyjq Collecting pyjq Using cached pyjq-2.1.0.tar.gz Requirement already satisfied: six in c:\python3\lib\site-packages (from pyjq) Installing collected packages: pyjq Running setup.py install for pyjq … error Complete output from command c:\python3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\MY_USER\AppData\Local\Temp\pip-build-k7cnpd5a\pyjq\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\MY_USER\AppData\Local\Temp\pip-g3tkaopx-record\install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build\lib.win-amd64-3.6 copying pyjq.py -> build\lib.win-amd64-3.6 running build_ext error: [WinError 2] The system cannot find the file specified

----------------------------------------

Command “c:\python3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\MY_USER\AppData\Local\Temp\pip-build-k7cnpd5a\pyjq\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\MY_USER\AppData\Local\Temp\pip-g3tkaopx-record\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\MY_USER\AppData\Local\Temp\pip-build-k7cnpd5a\pyjq\

Tying to install jq only also gives me an error: C:\Users\MY_USER>pip install jq Collecting jq Downloading jq-0.1.6.tar.gz Installing collected packages: jq Running setup.py install for jq … error Complete output from command c:\python3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\MY_USER\AppData\Local\Temp\pip-build-s3zspsnl\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\MY_USER\AppData\Local\Temp\pip-9vctxy7k-record\install-record.txt --single-version-externally-managed --compile: running install running build running build_ext Executing: ./configure CFLAGS=-fPIC --prefix=C:\Users\MY_USER\AppData\Local\Temp\pip-build-s3zspsnl\jq\onig-install-5.9.6 error: [WinError 2] The system cannot find the file specified

----------------------------------------

Command “c:\python3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\MY_USER\AppData\Local\Temp\pip-build-s3zspsnl\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\MY_USER\AppData\Local\Temp\pip-9vctxy7k-record\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\MY_USER\AppData\Local\Temp\pip-build-s3zspsnl\jq\

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyjq · PyPI
Install them by Homebrew, APT or other way. You can install from PyPI by usual way. pip install pyjq. API. For jq script,...
Read more >
"pip install jq" generates errors on Mac and Windows
Trying to install pyjq ( pip install pyjq ) generates the same errors. Tried pip install jq on a Mac and got similar...
Read more >
Installing pyjq package (note to self) - Nicholas de Jong
The pyjq pip package is awesome however you'll need to install system dependencies that are mentioned in brief leaving you to wonder which ......
Read more >
Request help w/pip install jq - Google Groups
I've tried installing jq several times in my local environment, but it ... or, since you seem to be on Windows, if you...
Read more >
4. Using Python on Windows — Python 3.11.1 documentation
All of the options available in the installer UI can also be specified from the command line, allowing scripted installers to replicate an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found