Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install jq fails on windows #132

Open
tryantdb opened this issue May 11, 2024 · 1 comment
Open

pip install jq fails on windows #132

tryantdb opened this issue May 11, 2024 · 1 comment

Comments

@tryantdb
Copy link

操作系统:

  Windows 11 家庭中文版
  版本:23H2
  操作系统版本:22631.3447

问题描述:

  尝试使用 pip3 install -r requirements.txt 安装依赖时,安装 jq 包失败。

部分日志如下:

  Using cached pyasn1-0.6.0-py2.py3-none-any.whl (85 kB)
  Using cached pycocotools-2.0.7-cp311-cp311-win_amd64.whl (85 kB)
  Downloading pypdfium2-4.30.0-py3-none-win_amd64.whl (2.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 1.7 MB/s eta 0:00:00
  Using cached timm-0.9.16-py3-none-any.whl (2.2 MB)
  Using cached portalocker-2.8.2-py3-none-any.whl (17 kB)
  Building wheels for collected packages: jq
    Building wheel for jq (pyproject.toml) ... error
    error: subprocess-exited-with-error
  
    × Building wheel for jq (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [5 lines of output]
        running bdist_wheel
        running build
        running build_ext
        Executing: ./configure CFLAGS=-fPIC --prefix=C:\Users\JeanRiver\AppData\Local\Temp\pip-install-_i5dnfje\jq_68d45937a68f47918473e8d79f9a93ba\_deps\build\onig-install-6.9.8
        error: [WinError 2] 系统找不到指定的文件。
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for jq
  Failed to build jq
  ERROR: Could not build wheels for jq, which is required to install pyproject.toml-based projects
@HungryFour
Copy link
Collaborator

可是先尝试fix-jq 的分支,该分支还没有充分测试。如果有啥问题,可以继续在该issue下讨论。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants