[移植] tgi 编译

这里写自定义目录标题

报错

Collecting numpy==1.26.4 (from -r requirements_cuda.txt (line 21))
  Downloading numpy-1.26.4.tar.gz (15.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 15.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install backend dependencies did not run successfully.
  │ exit code: 1
  ╰─> [63 lines of output]
      Collecting patchelf>=0.11.0
        Downloading patchelf-0.17.2.1.tar.gz (167 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting ninja>=1.8.2
        Downloading ninja-1.11.1.1.tar.gz (132 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Building wheels for collected packages: patchelf, ninja
        Building wheel for patchelf (pyproject.toml): started
        Building wheel for patchelf (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for patchelf (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [9 lines of output]
            Traceback (most recent call last):
              File "/tmp/pip-build-env-mtjgz_n7/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 639, in setup
                cmkr = cmaker.CMaker(cmake_executable)
              File "/tmp/pip-build-env-mtjgz_n7/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 145, in __init__
                self.cmake_version = get_cmake_version(self.cmake_executable)
              File "/tmp/pip-build-env-mtjgz_n7/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version
                raise SKBuildError(msg) from err
      
            Problem with the CMake installation, aborting build. CMake executable is cmake
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for patchelf
        Building wheel for ninja (pyproject.toml): started
        Building wheel for ninja (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for ninja (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [13 lines of output]
            /tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/setuptools_scm/git.py:312: UserWarning: git archive did not support describe output
              warnings.warn("git archive did not support describe output")
            /tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/setuptools_scm/git.py:331: UserWarning: unprocessed git archival found (no export subst applied)
              warnings.warn("unprocessed git archival found (no export subst applied)")
            Traceback (most recent call last):
              File "/tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 639, in setup
                cmkr = cmaker.CMaker(cmake_executable)
              File "/tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 145, in __init__
                self.cmake_version = get_cmake_version(self.cmake_executable)
              File "/tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version
                raise SKBuildError(msg) from err
      
            Problem with the CMake installation, aborting build. CMake executable is cmake
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for ninja
      Failed to build patchelf ninja
      ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (patchelf, ninja)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
make[1]: *** [Makefile:26: install-server] Error 1
make[1]: Leaving directory '/app/text-generation-inference/server'
make: *** [Makefile:2: install-server] Error 2
bash: text-generation-launcher: command not found

apt install patchelf ninja-build
apt install gfortran

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值