Installing MindSpore Golden Stick
Environmental Restrictions
The following table lists the environment required for installing, compiling and running MindSpore Golden Stick:
software |
version |
---|---|
Ubuntu |
18.04 |
Python |
3.7-3.9 |
Please refer to requirements for other third party dependencies. MindSpore Golden Stick can only run on Ubuntu18.04.
Version Dependency
The MindSpore Golden Stick depends on the MindSpore training and inference framework, please refer the table below and MindSpore Installation Guide to install the corresponding MindSpore verision.
MindSpore Golden Stick Version |
Branch |
MindSpore version |
---|---|---|
0.4.0 |
2.3.0-rc1 |
|
0.3.0 |
2.0.0-rc1, 2.0.0 |
|
0.2.0 |
1.9.0 |
|
0.1.0 |
1.8.0 |
After MindSpore is installed, you can use pip or source code build for MindSpore Golden Stick installation.
Installing from pip Command
If you use the pip command, please download the whl package from MindSpore Golden Stick page and install it.
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/{MindSpore_version}/GoldenStick/any/mindspore_rl-{mg_version}-py3-none-any.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
Installing whl package will download MindSpore Golden Stick dependencies automatically (detail of dependencies is shown in requirement.txt), other dependencies should install manually.
{ms_version}
stands for the version of MindSpore Golden Stick. For example, if you would like to download version 0.4.0, you should fill 2.3.0-rc1 in{MindSpore_version}
and fill 0.4.0 in{mg_version}
.
{mg_version}
indicates the MindSpore Golden Stick version number, for example, when downloading version 0.4.0 of MindSpore Golden Stick,{mg_version}
should be written as 0.4.0.
Installing from Source Code
Download source code, then enter the golden-stick
directory.
bash build.sh
pip install output/mindspore_gs-0.4.0-py3-none-any.whl
build.sh
is the compiling script in golden-stick
directory.
Verification
If you can successfully execute following command, then the installation is completed.
import mindspore_gs