树莓派5上部署hermes 0.15.2

📅 2026/6/18 21:03:21
树莓派5上部署hermes 0.15.2
目录1、更新源镜像1. 先备份现有源文件2. 编辑 debian.sources系统主源3. 编辑 raspi.sources树莓派专属源4. 更新系统验证源是否正常2、安装Hermes1. 克隆完整仓库不是浅克隆2. 进入目录并切换到v0.15.2稳定版3. 安装依赖4. 重新创建全局 hermes 命令5. 引导配置大模型6. 接入飞书6.1 安装飞书依赖6.2 引导配置聊天平台1、更新源镜像1. 先备份现有源文件sudocp/etc/apt/sources.list.d/debian.sources /etc/apt/sources.list.d/debian.sources.baksudocp/etc/apt/sources.list.d/raspi.sources /etc/apt/sources.list.d/raspi.sources.bak2. 编辑 debian.sources系统主源sudovim/etc/apt/sources.list.d/debian.sources删除所有原有内容替换为以下清华源配置Types: deb URIs: https://mirrors.tuna.tsinghua.edu.cn/debian/ Suites: trixie trixie-updates Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: https://mirrors.tuna.tsinghua.edu.cn/debian-security/ Suites: trixie-security Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg3. 编辑 raspi.sources树莓派专属源sudovim/etc/apt/sources.list.d/raspi.sources删除所有原有内容替换为Types: deb URIs: https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ Suites: trixie Components: main Signed-By: /usr/share/keyrings/raspberrypi-archive-keyring.pgp保存退出。4. 更新系统验证源是否正常sudoaptupdatesudoaptupgrade-y如果没有报错说明源配置成功。2、安装Hermes1. 克隆完整仓库不是浅克隆gitclone https://github.com/NousResearch/hermes-agent.git ~/.hermes/hermes-agent注意先开始用最新的v0.16.0版本最后发现有个致命bug最后退到了次新版本进行安装。2. 进入目录并切换到v0.15.2稳定版cd~/.hermes/hermes-agentgitcheckout v2026.5.29.23. 安装依赖# 在当前hermes-agent目录下创建虚拟环境uv venv# 激活虚拟环境source.venv/bin/activate# 安装完整依赖包括所有工具和技能uv pipinstall-e.[all]4. 重新创建全局 hermes 命令# 先删除旧的符号链接rm-f~/.local/bin/hermes# 创建指向新虚拟环境的链接ln-s/home/zph/.hermes/hermes-agent/.venv/bin/hermes ~/.local/bin/hermes# 重载bash配置source~/.bashrc验证安装成功# 查看版本号应该显示v0.15.2hermes--version5. 引导配置大模型使用引导方式配置大模型比较稳定。手动修改yaml容易出各种问题hermes model6. 接入飞书6.1 安装飞书依赖cd~/.hermes/hermes-agentsource.venv/bin/activate uv pipinstallhermes-agent[feishu]6.2 引导配置聊天平台hermes gateway setup