# AU2512期货成交量-成交价序列分析工具 - 依赖包列表 ## 环境信息 - **Python版本**: 3.7+ - **更新日期**: 2025-11-02 - **工具类型**: 期货数据可视化分析 ## 核心依赖包 ### 数据处理和数值计算 ``` pandas>=1.3.0 numpy>=1.20.0 ``` ### 数据可视化 ``` matplotlib>=3.3.0 ``` ## 快速安装 ### 方法1: 直接安装核心依赖 ```bash pip install pandas numpy matplotlib ``` ### 方法2: 使用requirements.txt文件 ```bash pip install -r requirements.txt ``` ### 方法3: 使用国内镜像源(推荐) ```bash pip install pandas numpy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple ``` ## 验证安装 创建简单的验证脚本: ```python import pandas as pd import numpy as np import matplotlib.pyplot as plt print("✅ 核心依赖包验证通过") print(f"pandas: {pd.__version__}") print(f"numpy: {np.__version__}") print(f"matplotlib: {plt.__version__}") ``` 运行验证: ```bash python -c "import pandas as pd, numpy as np, matplotlib.pyplot as plt; print('✅ 依赖包验证通过')" ``` ## 项目说明 ### 技术栈精简 - **pandas**: 数据处理和分析 - **numpy**: 数值计算基础 - **matplotlib**: 静态数据可视化 ### 功能专注 本项目专注于成交量-成交价序列分析,相比复杂的多功能工具,具有以下优势: - ✅ 安装简单,依赖最少 - ✅ 专注核心功能,易于维护 - ✅ 运行快速,资源占用少 - ✅ 学习成本低,易于使用 ### 可选依赖(非必需) 如果需要额外功能,可以选择性安装: ```bash # 支持更多数据格式 pip install pyarrow openpyxl # 增强统计分析 pip install scipy # 交互式可视化 pip install seaborn plotly ``` ## 故障排除 ### 常见问题 1. **中文字体问题**: 确保系统安装了中文字体(如Microsoft YaHei、SimHei等) 2. **编码问题**: 在Windows上建议使用UTF-8编码环境 3. **权限问题**: 使用适当的权限安装包 ### 国内用户推荐 使用国内镜像源提高下载速度: ```bash pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple ``` ## 版本兼容性 | Python版本 | pandas | numpy | matplotlib | |------------|---------|--------|------------| | 3.7+ | >=1.3.0 | >=1.20.0 | >=3.3.0 | | 3.8+ | >=1.4.0 | >=1.21.0 | >=3.4.0 | | 3.9+ | >=1.5.0 | >=1.22.0 | >=3.5.0 | | 3.10+ | >=1.6.0 | >=1.23.0 | >=3.6.0 | | 3.11+ | >=2.0.0 | >=1.24.0 | >=3.7.0 | --- **注意**: 本项目采用最小依赖原则,只包含核心功能所需的基础包,确保工具的简洁性和可靠性。