This document describes how to quickly install MindSpore by pip in a Linux system with a CPU environment.
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/{version}/MindSpore/cpu/{system}/mindspore-{version}-cp37-cp37m-linux_{arch}.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
Of which,
{version}
denotes the version of MindSpore. For example, when you are installing MindSpore 1.1.0, {version}
should be 1.1.0.{arch}
denotes the system architecture. For example, the Linux system you are using is x86 architecture 64-bit, {arch}
should be x86_64
. If the system is ARM architecture 64-bit, then it should be aarch64
.{system}
denotes the system version. For example, if you are using Ubuntu x86 architecture, {system}
should be ubuntu_x86
. Currently, the following systems are supported by CPU: ubuntu_aarch64
/ubuntu_x86
.python -c "import mindspore;print(mindspore.__version__)"
If the MindSpore version number is displayed, it means that MindSpore is installed successfully, and if the output is No module named 'mindspore'
, it means that the installation was not successful.
Using the following command if you need to update the MindSpore version:
pip install --upgrade mindspore
If you need to conduct AI model security research or enhance the security of the model in you applications, you can install MindArmour.
For more details, please refer to MindArmour.
If you need to access and experience MindSpore pre-trained models quickly, you can install MindSpore Hub.
For more details, please refer to MindSpore Hub.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。