移除的依赖: - gluonts: 项目中未使用 - pytorch-lightning: 非必需 - torchmetrics: 非必需 - onnx/onnxruntime: 非核心功能 - sqlalchemy: 使用 pymysql 直连 - jupyter/matplotlib/seaborn/pytest: 开发工具,非运行必需 保留的核心依赖: - pandas, numpy, scikit-learn: 数据处理 - granite-tsfm: TTM-R2 模型 - pandas-ta: 技术指标 - fastapi, uvicorn: API 服务 - httpx, python-binance: 数据获取 - schedule: 任务调度 - pymysql, cryptography: 数据库 注意:PyTorch 需要单独安装(Windows 用 CPU 版本)
70 lines
2.0 KiB
Plaintext
70 lines
2.0 KiB
Plaintext
# ==============================================
|
|
# 加密货币预测系统依赖
|
|
# Python 3.12 | 支持 macOS (MPS) 和 Windows (CPU)
|
|
# ==============================================
|
|
|
|
# ----------------------------------------------
|
|
# PyTorch (根据平台单独安装)
|
|
# ----------------------------------------------
|
|
# macOS: pip install torch torchvision torchaudio
|
|
# Windows CPU: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
|
# 注意:requirements.txt 中不包含 torch,需要手动安装
|
|
|
|
# ----------------------------------------------
|
|
# 数据处理
|
|
# ----------------------------------------------
|
|
pandas>=2.0.0
|
|
numpy>=1.24.0
|
|
scikit-learn>=1.3.0
|
|
pytz
|
|
|
|
# ----------------------------------------------
|
|
# 时序模型
|
|
# ----------------------------------------------
|
|
# IBM Granite TTM-R2 (导入名: tsfm_public)
|
|
granite-tsfm>=0.3.0
|
|
|
|
# ----------------------------------------------
|
|
# 技术指标
|
|
# ----------------------------------------------
|
|
pandas-ta>=0.3.14b
|
|
|
|
# ----------------------------------------------
|
|
# API 服务
|
|
# ----------------------------------------------
|
|
fastapi>=0.104.0
|
|
uvicorn[standard]>=0.24.0
|
|
pydantic>=2.0.0
|
|
python-multipart>=0.0.6
|
|
|
|
# ----------------------------------------------
|
|
# HTTP 客户端
|
|
# ----------------------------------------------
|
|
httpx>=0.25.0
|
|
|
|
# ----------------------------------------------
|
|
# 数据源
|
|
# ----------------------------------------------
|
|
python-binance>=1.0.19
|
|
|
|
# ----------------------------------------------
|
|
# 任务调度
|
|
# ----------------------------------------------
|
|
schedule>=1.2.0
|
|
|
|
# ----------------------------------------------
|
|
# 数据库
|
|
# ----------------------------------------------
|
|
pymysql>=1.1.0
|
|
cryptography>=41.0.0
|
|
|
|
# ----------------------------------------------
|
|
# 环境变量
|
|
# ----------------------------------------------
|
|
python-dotenv>=1.0.0
|
|
|
|
# ----------------------------------------------
|
|
# 进度条
|
|
# ----------------------------------------------
|
|
tqdm>=4.66.0
|