chore: 单位 4090D Phase 0 环境就绪 + 文档微调

This commit is contained in:
simonkoson
2026-05-09 13:08:26 +08:00
parent f1170dbe01
commit eafdc27185
5 changed files with 166 additions and 22 deletions
+4 -4
View File
@@ -271,19 +271,19 @@ Cline 在每次开新 Task 时,**第一个动作建议是 `git status`**,确认
**Python 端**:
- ❌ 不要用 Microsoft Store 版 Python → ✅ 用 python.org 官方 64 位安装包
- ❌ 不要装 Python 3.13 → ✅ 装 **Python 3.12.x**(SQLModel 等库 3.13 兼容性还不稳)
- ❌ 不要装 Python 3.13/3.14 → ✅ 装 **Python 3.12.x**(SQLModel 等库新版 Python 兼容性还不稳;3.14 上 pip 装包时大概率报错)
- 安装时勾选 "Add Python to PATH"
**Node.js 端**:
- ❌ 不要装 Node.js 22+ → ✅ 装 **Node.js 20 LTS**
- 推荐用 **nvm-windows** 装,方便切换版本
- ❌ 不要装 Node.js 24+ → ✅ 装 **Node.js 22 LTS**(Active LTS 至 2027-04;Node 20 已于 2026-04-30 EOL)
- 单一项目无需 nvm-windows;若同机多项目要共存不同 Node 版本再考虑
**PostgreSQL 端**:
- ❌ 装 PostgreSQL 17+ → ✅ 装 **PostgreSQL 16**
- 装完必须执行 `CREATE EXTENSION vector;` 验证 pgvector 装了
- 本地数据库:`milsci_dev` / 用户 `postgres` / 密码 `liutong65` / 端口 `5432`
本地数据库:`milsci_dev` / 用户 `postgres` / 密码(记在密码管理器中,**绝不进仓库**)/ 端口 `5432`
**关键 Python 依赖锁版本**(写进 requirements.txt):