代码拉取完成,页面将自动刷新
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.
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.
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。
Execute the following command. If it prompts the following information, the installation is successful:
import mindspore_rl
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。