Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Installing Llama cpp python on Debian with no git installed throws an error

未关闭 适合新手
#1,924 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
cmake, git, python
领域
build-system

调研方向

错误发生在 CMake 配置期间,位置是 vendor/llama.cpp/ggml/CMakeLists.txt 第 277 行,此处 find_program 会查找 git。检查 CMakeLists.txt,以了解为什么从版本 0.3.7+ 开始需要 git。确认该依赖是否是强制性的,或者是否可以设为可选。修复可能需要修改 CMake 逻辑,以处理没有 git 的系统,例如提供 fallback 或跳过依赖 git 的步骤。在未安装 git 的 Debian 系统上测试构建。

由索引模型根据 Issue 内容生成。

描述

Prior to version 0.3.7 I had no issues installing llama cpp python on my embedded single board computer which is running debian. Git is not installed on the image I'm using. When I run pip install llama-cpp-python==0.3.6 --break-system-packages everything works fine, but when I try to install the latest version I get the following error.

  -- Adding CPU backend variant ggml-cpu: -mcpu=cortex-a76.cortex-a55+crypto+dotprod+noi8mm+nosve
  CMake Error at vendor/llama.cpp/ggml/CMakeLists.txt:277 (find_program):
    Could not find GIT_EXE using the following names: git, git.exe
  
  
  -- Configuring incomplete, errors occurred!
  
  *** CMake configuration failed

After installing git the issue is fixed. It's an easy fix so it's not a big deal, but I would rather not install unnecessary dependencies on my lightweight image, and am also wondering why this changed.

主要语言
Python
星标
10.6k
派生
1.5k
平均合并
3 小时 57 分钟
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

abetlen/llama-cpp-python 的其他 Issue

查看 abetlen/llama-cpp-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。