This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# AI 期货分析系统运行指南
## 1. 环境准备
### 1.1 系统要求
- 操作系统 : Windows 10/11 或 Linux/macOS
- Python 版本 : Python 3.8 及以上
- 内存 : 至少 4GB
- 存储空间 : 至少 500MB
### 1.2 检查 Python 环境
```
#检查Python版本
python--version
#检查pip版本
pip--version
```
## 2. 安装依赖
### 2.1 安装核心依赖
在项目根目录执行:
```
pipinstall-rrequirements.txt
```
### 2.2 解决可能的依赖问题
- tqsdk 导入失败 : 系统会自动使用模拟数据,不影响基本功能
- TA-Lib 安装失败 : 可以注释掉该依赖,系统会使用内置的技术分析函数
## 3. 配置设置
### 3.1 创建环境配置文件
复制 .env.example 文件并重命名为 .env :
```
#Windows
copy.env.example.env
#Linux/macOS
cp.env.example.env
```
### 3.2 配置关键参数
编辑 .env 文件,设置以下参数:
- DEEPSEEK_API_KEY : DeepSeek API 密钥(可选,不设置会使用模拟响应)