TsinghuaDatabaseGroup / DB-GPT

An LLM Based Diagnosis System (https://arxiv.org/pdf/2312.01454.pdf)
http://dbgpt.dbmind.cn/
Apache License 2.0
464 stars 64 forks source link

pip install jq fails on windows #132

Open tryantdb opened 1 month ago

tryantdb commented 1 month ago

操作系统:

  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 commented 1 month ago

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