You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

树莓派3 Model A+无法安装Python face-recognition库求助

树莓派3 Model A+安装face-recognition库失败问题

我尝试在树莓派3 Model A+上安装Python的face-recognition库,但始终安装失败,每次尝试都会出现安装错误(如图所示),所有操作均无法解决该问题。

系统配置

  • 硬件:树莓派3 Model A+
  • 操作系统:基于Debian的Raspbian OS
  • Python版本:3.11.3
  • 目标face-recognition库版本:1.3.0
  • 操作环境:Python虚拟环境

已尝试的解决操作

  • 清除缓存安装:
    pip install --no-cache-dir face-recognition
    
  • 更新pip和setuptools:
    pip install --upgrade pip setuptools
    
  • 单独安装依赖:
    pip install cmake dlib
    
  • 克隆仓库本地安装:
    git clone https://github.com/ageitgey/face_recognition.git
    cd face_recognition
    pip install .
    
  • 浅克隆后获取完整仓库再安装:
    git clone https://github.com/ageitgey/face_recognition.git --depth 1
    cd face_recognition
    git fetch --unshallow
    
  • 使用SSH克隆仓库安装:
    git clone git@github.com:ageitgey/face_recognition.git
    

最初我还尝试通过apt包管理器安装,但同样失败,因此创建了虚拟环境,期望能成功安装该库。

内容的提问来源于stack exchange,提问作者Abdullah Abid

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 21:20:58