Preparation for installation
确保已安装Python 3.7+版本和Git工具,推荐使用虚拟环境(如venv或conda)隔离依赖。
Detailed installation steps
- 克隆源码库::
execute a commandgit clone https://github.com/Quarm-AI/Quarm.git
获取最新代码 - Installation of dependencies::
进入项目目录运行pip install -r requirements.txt
,该文件包含NumPy、Matplotlib等核心依赖 - Environment Configuration::
Modify as necessaryconfig.yaml
文件,设置智能体数量、仿真参数等;对于GPU加速,需额外安装CUDA工具包
Verify Installation
Run the sample scriptexamples/basic_demo.py
,若成功显示智能体运动轨迹的可视化窗口,则证明安装正确。常见问题包括:
- 依赖冲突:建议使用干净的虚拟环境
- 路径错误:确保终端工作目录在项目根文件夹
- 权限问题:Linux/macOS系统可能需要sudo权限
This answer comes from the articleQuantum Swarm: a framework for multi-intelligence cluster collaborationThe