335 Star 1.5K Fork 861

MindSpore / docs

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

Installing MindSpore in CPU by pip

View Source On Gitee

This document describes how to quickly install MindSpore by pip in a Linux system with a CPU environment.

System Environment Information Confirmation

  • Confirm that Ubuntu 18.04 is installed with the 64-bit operating system.
  • Confirm that GCC 7.3.0 is installed.
  • Confirm that Python 3.7.5 is installed.
    • If you didn't install Python or you have installed other versions, please download the Python 3.7.5 64-bit from Python or Huaweicloud to install.

Downloading and Installing MindSpore

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,

  • When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about other dependency items, see requirements.txt). In other cases, you need to manually install dependency items.
  • {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.

Installation Verification

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.

Version Update

Using the following command if you need to update the MindSpore version:

pip install --upgrade mindspore

Installing MindArmour

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.

Installing MindSpore Hub

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.

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

搜索帮助