File tree Expand file tree Collapse file tree 3 files changed +34
-5
lines changed
Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Original file line number Diff line number Diff line change 1313.gemini-clipboard /
1414
1515# Claude Code local settings
16- .claude /settings.local.json
16+ ** /settings.local.json
1717
1818# AI Collaboration Workspace (temporary files)
1919.ai-workspace /*
Original file line number Diff line number Diff line change 1+ 3.9.25
Original file line number Diff line number Diff line change @@ -37,22 +37,50 @@ FIT for Python 是基于 FIT Framework 的 Python 运行时与插件开发套件
3737
3838## 环境准备
3939
40- 需要在 Python 3.9 及以上版本安装 ` requirements.txt ` 中的第三方依赖,当前依赖如下:
40+ ### Python 版本要求
41+
42+ ** 当前测试版本:Python 3.9.25**
43+
44+ 项目已配置 ` .python-version ` 文件指定版本。如使用 pyenv,会自动切换到对应版本。
45+
46+ ** 版本兼容性说明:**
47+ - 依赖包(特别是 numpy==1.25.2)已针对 Python 3.9 进行测试
48+ - 更高版本(如 3.14+)可能存在兼容性问题
49+ - 升级 Python 版本时,请同步更新 ` requirements.txt ` 中的依赖版本
50+
51+ ### 安装依赖
52+
53+ 需要安装 ` requirements.txt ` 中的第三方依赖,当前依赖如下:
4154
4255``` python
4356numpy== 1.25 .2
4457PyYAML== 6.0 .1
45- requests== 2.31 .0
46- tornado== 6.3 .2
58+ requests== 2.32 .4
59+ tornado== 6.5 .0
4760```
4861
4962推荐在虚拟环境中安装依赖:
5063``` bash
51- python -m venv .venv # 创建虚拟环境
64+ # 方法 1:使用 python3.9(推荐)
65+ python3.9 -m venv .venv # 创建虚拟环境
5266source .venv/bin/activate # Windows 可执行 .\.venv\Scripts\activate
5367pip install -r requirements.txt
68+
69+ # 方法 2:使用 pyenv(自动读取 .python-version)
70+ pyenv install 3.9.25 # 首次使用需安装
71+ eval " $( pyenv init -) "
72+ python -m venv .venv
73+ source .venv/bin/activate
74+ pip install -r requirements.txt
75+
76+ # 方法 3:使用系统默认 python3
77+ python3 -m venv .venv # 确保 python3 版本 >= 3.9
78+ source .venv/bin/activate
79+ pip install -r requirements.txt
5480```
5581
82+ ** 注意:** 虚拟环境激活后,` python ` 命令即可直接使用,无需输入 ` python3 ` 。
83+
5684## 快速开始
5785
58861 . 进入工程根目录:` cd framework/fit/python ` 。
You can’t perform that action at this time.
0 commit comments