add uv install guide & pyproject.toml; unify error prefix to !!!Error:

This commit is contained in:
Liang Jiaqing
2026-04-24 10:00:15 +08:00
parent f334994ab6
commit 12c2fe1f79
3 changed files with 75 additions and 7 deletions

View File

@@ -89,6 +89,20 @@ cp mykey_template.py mykey.py
python launch.pyw
```
#### Method 2: uv (for experienced Python users)
If you prefer a modern Python workflow, GenericAgent also provides a minimal `pyproject.toml`:
```bash
git clone https://github.com/lsdefine/GenericAgent.git
cd GenericAgent
uv pip install -e ".[ui]" # Core + GUI dependencies
cp mykey_template.py mykey.py
python launch.pyw
```
> GenericAgent is meant to grow its environment through the Agent itself, not by pre-installing every possible package.
Full guide: [GETTING_STARTED.md](GETTING_STARTED.md)
---
@@ -293,6 +307,20 @@ cp mykey_template.py mykey.py
python launch.pyw
```
#### 方法二uv 快速安装(熟悉 Python 的用户)
如果你习惯现代 Python 工作流GenericAgent 也提供了一个最小化的 `pyproject.toml`
```bash
git clone https://github.com/lsdefine/GenericAgent.git
cd GenericAgent
uv pip install -e ".[ui]" # 核心 + GUI 依赖
cp mykey_template.py mykey.py
python launch.pyw
```
> GenericAgent 更推荐由 Agent 在使用中自举环境,而不是预先手动装完整依赖。
完整引导流程见 [GETTING_STARTED.md](GETTING_STARTED.md)。
📖 新手使用指南(图文版):[飞书文档](https://my.feishu.cn/wiki/CGrDw0T76iNFuskmwxdcWrpinPb)