onekeylog_diagv2/docs/D01_环境部署.md
leimingsheng 58e568869d code sync
2025-09-01 09:38:03 +08:00

29 lines
706 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.

# D01_环境部署
操作系统: Windows
Python版本3.11.13
推荐使用Anaconda yml配置文件一键导入虚拟python环境
[配置文件路径](./../misc/okd-env.yml)
## 使用配置文件构建虚拟环境
Anaconda版本 conda 25.5.1
```shell
# 1.需要自行安装Anaconda, 建议安装同版本Anaconda
# 2.将okd-env.yml文件复制到目标设备
# 3.打开 Anaconda Prompt / 终端,执行重建命令:
conda env create --file 路径/文件名.yml
# 例如conda env create --file C:/Users/xxx/Desktop/okd-env.yml
# 4.等待 conda 自动下载并安装所有依赖包,完成后激活环境验证
conda activate okd-env
python --version
```