安装 Magentic-UI 需要以下步骤和前置条件:
Environmental Preparation:
- 确保系统安装 Git 和 Docker(Windows 用户需启用 WSL2)
- 验证 Docker 运行状态:
docker --version
Installation Process:
- Clone a GitHub repository:
git clone https://github.com/microsoft/magentic-ui.git
- 进入项目目录安装依赖:
pip install -r requirements.txt
- Start the Docker service:
docker-compose up -d
- Run the main program:
python main.py
Optional configuration:
- 模型配置:编辑 config.json 文件更换 AI 模型(默认支持 OpenAI)
- 非 Docker 模式:运行
python main.py --no-docker
,但会缺少代码执行功能
注意:完整功能需要 Docker 支持,推荐内存 8GB 以上的设备运行,首次使用可能需要较长时间拉取 Docker 镜像。
This answer comes from the articleMagentic-UI: An Intelligent Agent Tool to Support User Collaboration on Web TasksThe