尝试在 Ubuntu 上仅安装 CPU
作者: ghost创建于 2025年6月24日更新于 2025年6月24日
Building wheels for collected packages: LLaMA-cpp-Python
678.1 Building wheel for LLaMA-cpp-Python (pyproject.toml): started
678.6 Building wheel for LLaMA-cpp-Python (pyproject.toml): finished with status 'error'
678.6 error: subprocess-exited-with-error
678.6
678.6 × Building wheel for LLaMA-cpp-Python (pyproject.toml) did not run successfully.
678.6 exit code: 1
678.6 ╰─> [16 lines of output]
678.6 *** scikit-build-core 0.11.4 using CMake 4.0.3 (wheel)
678.6 *** Configuring CMake...
678.6 loading initial cache file /tmp/tmp_rnn10qf/build/CMakeInit.txt
678.6 CMake Error at /tmp/pip-build-env-jv1jk7w_/normal/lib/python3.10/site-packages/cmake/data/share/cmake-4.0/Modules/CMakeDetermineCCompiler.cmake:49 (message):
678.6 Could not find compiler set in environment variable CC:
678.6
678.6 gcc-11.
678.6 Call Stack (most recent call first):
678.6 CMakeLists.txt:3 (project)
678.6
678.6
678.6 CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
678.6 CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
678.6 -- Configuring incomplete, errors occurred!
678.6
678.6 *** CMake configuration failed
678.6 [end of output]
678.6
678.6 note: This error originates from a subprocess, and is likely not a problem with pip.
678.6 ERROR: Failed building wheel for LLaMA-cpp-Python
678.6 Failed to build LLaMA-cpp-Python
678.7 ERROR: Failed to build installable wheels for some pyproject.toml based projects (LLaMA-cpp-Python)
failed to solve: process "/bin/sh -c cd /workspace && ./docker_build_script_ubuntu.sh" did not complete successfully: exit code: 1 ubuntu@ip-10-0-1-144:~/h2ogpt$ g++ --version This is what my docker_build_script_ubuntu.sh looks like
内容来源: h2oai/h2ogpt