[移植] 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
- apt cmake libopenblas-dev
- sudo apt-get install libjpeg-dev
sudo apt-get install patchelf ninja-build gfortran cmake libopenblas-dev libjpeg-dev