重复这个问题,但第一个答案是错误的(jqWindows支持),第二个答案是brew因为我猜测是Mac.
我试图jq从Windows命令行安装python,但得到以下错误,可能是由于丢失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\\<USERNAME>\\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\<USERNAME>\appdata\local\temp\pip-khvjht-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\<USERNAME>\appdata\local\temp\pip-build-rtnhmg\jq\
有谁知道这里出了什么问题?对StackOverflow和Google的搜索并没有给我太多的帮助,而且我对Windows并不擅长,而且还不熟悉python/pip.
这是全文,减去用户名:
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>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 …Run Code Online (Sandbox Code Playgroud)