Files
security-ai-edge/.trae/documents/plan_20260129_093556.md

33 lines
1014 B
Markdown
Raw 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.

# 更新 requirements.txt 最稳定版本
## 选择最稳定版本的原则
- 已发布6-12个月以上
- 经过大量用户验证
- 兼容性最好
- Bug最少
## 最稳定版本清单
| 依赖 | 选择版本 | 理由 |
|------|---------|------|
| opencv-python | ==4.8.0.74 | 4.8系列稳定版,广泛验证 |
| numpy | ==1.24.0 | Python 3.8-3.11完美兼容,成熟稳定 |
| paho-mqtt | ==1.6.1 | 1.6.x最终版企业级稳定 |
| sqlalchemy | ==2.0.23 | 2.0系列长期支持版 |
| pymysql | ==1.1.0 | 长期稳定版 |
| redis | ==4.6.0 | 4.x系列最终稳定版 |
| pyyaml | ==6.0.1 | 安全稳定版 |
| pytest | ==7.4.4 | 7.x系列最终稳定版 |
| pytest-cov | ==4.1.0 | 成熟稳定版 |
**可选依赖(按需安装):**
- tensorrt==8.6.1.6 (CUDA 12.1专用)
- pycuda==2023.1.1 (稳定版)
- ultralytics==8.0.228 (YOLOv8 LTS版)
## 注意事项
1. ultralytics 代码中未实际导入,可设为可选
2. python-dotenv 未使用,移除
3. 使用固定版本确保环境一致性