334 Star 1.5K Fork 863

MindSpore / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
reinforcement_install.md 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
宦晓玲 提交于 2023-07-21 15:17 . modify the md links in 1.5

MindSpore Reinforcement Installation

View Source On Gitee

MindSpore Reinforcement depends on the MindSpore training and inference framework. Therefore, install MindSpore and then MindSpore Reinforecement. You can install MindSpore Reinforcement either by pip or by source code.

Installation by pip

If use the pip command, download the .whl package from the MindSpore Reinforcement page and install it.

pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/{ms_version}/Reinforcement/any/mindspore_rl-{mr_version}-py3-none-any.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
  • When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about other dependency items, see requ irements.txt). In other cases, you need to manually install dependency items.
  • {ms_version} refers to the MindSpore version that matches with MindSpore Reinforcement. For example, if you want to install MindSpore Reinforcement 0.1.0, then,{ms_version} should be 1.5.0。
  • {mr_version} refers to the version of MindSpore Reinforcement. For example, when you are downloading MindSpore Reinforcement 0.1.0, {mr_version} should be 0.1.0.

Installation by Source Code

Download source code,and enter reinforcement directory.

bash build.sh
pip install output/mindspore_rl-0.1.0-py3-none-any.whl

The build.sh is the compile script under the reinforcement directory。

Installation Verification

Execute the following command. If it prompts the following information, the installation is successful:

import mindspore_rl
1
https://gitee.com/mindspore/docs.git
git@gitee.com:mindspore/docs.git
mindspore
docs
docs
r1.5

搜索帮助