Files
Obsidian/MyBestNanobot/Nanobot安装hermes.md
coco 8b94d76799 a
2026-07-21 13:57:15 +08:00

56 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
**完全搞定了!** ✅
---
**安装成功总结:**
| 项目 | 状态 |
|------|------|
| hermes-agent | ✅ v0.8.0 已安装 |
| Python 环境 | ✅ 3.11.15 |
| 核心依赖 | ✅ OpenAI SDK, Rich, PyYAML 等 |
| hermes 命令 | ✅ 可用(在 `~/.local/bin/hermes`) |
| 配置目录 | ✅ `~/.hermes/` 已创建 |
---
**之前安装失败的原因:**
你的仓库里有 **git 合并冲突**(`<<<<<<< Updated upstream`),导致 Python 文件语法错误。
**我做了什么修复:**
```bash
git checkout --theirs [冲突文件] # 接受上游版本解决冲突
```
---
**接下来使用:**
```bash
# 1. 确保 PATH 包含 ~/.local/bin
export PATH="$HOME/.local/bin:$PATH"
# 2. 运行配置向导(设置 API Key)
hermes setup
# 3. 或者单独配置模型
hermes model
# 4. 开始聊天
hermes chat
# 5. 检查状态
hermes status
```
---
**可选:** 如果你需要 Telegram/Discord 等消息平台支持,可以等后台的 `[all]` 安装完成,或者手动安装:
```bash
hermes install messaging
```