CoMLRL 可以从 PyPI、conda-forge 或源代码安装,并支持 Python 3.10 或更高版本。用户还应安装与设备兼容的 PyTorch 构建。
从 PyPI 安装#
pip install comlrl
# Install PyTorch compatible with your device.从 conda-forge 安装#
conda install -c conda-forge comlrl
# Install PyTorch compatible with your device.从源代码安装#
用户还可以克隆仓库并以可编辑模式安装 CoMLRL 以访问最新功能或在本地进行开发:
git clone https://github.com/OpenMLRL/CoMLRL.git
cd CoMLRL
pip install -e .
# Install PyTorch compatible with your device.