Installing Llama cpp python on Debian with no git installed throws an error
维护者通常 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
abetlen/llama-cpp-python 的其他 Issue
-
Seven llama_sampler_init_* bindings admit keyword arguments that the ctypes function object silently drops可能已有人在做 @Belal0066 于 11 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
abetlen/llama-cpp-python#2371 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
abetlen/llama-cpp-python#2352 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
abetlen/llama-cpp-python#2314 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
abetlen/llama-cpp-python#2211 · 2 条评论 ·
维护者通常 1 天内回复
-
Llama() silently accepts and discards `embedding` kwarg; .embed() then raises confusingly可能已有人在做 @Anai-Guo 于 29 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
abetlen/llama-cpp-python#2210 ·
维护者通常 1 天内回复
查看 abetlen/llama-cpp-python 的全部 Issue
相似的 Issue
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 72/100
-
priority: low
难度 2/5 1-3 小时 新手友好度 88/100
ll7/robot_sf_ll7#10128 ·
维护者通常 1 天内回复
-
area: monitoring type: task
难度 1/5 1 小时以内 新手友好度 91/100
dkritarth/scopewatch#175 ·
维护者通常 1 天内回复
-
Layers of type "3D Unknown" and "3D Measured Unknown" are refused, so FileGDB multipatch layers can't be read可能已有人在做 @aidannewsome 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
-
quantization
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/vllm#59904 ·
维护者通常 1 天内回复