348 Star 1.6K Fork 1K

MindSpore/docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.gitee
.github
docs
install
bak
mindspore_ascend_install_conda.md
mindspore_ascend_install_pip.md
mindspore_ascend_install_pip_en.md
mindspore_ascend_install_source.md
mindspore_ascend_install_source_en.md
mindspore_cpu_install_conda.md
mindspore_cpu_install_pip.md
mindspore_cpu_install_pip_en.md
mindspore_cpu_install_source.md
mindspore_cpu_install_source_en.md
mindspore_cpu_win_install_conda.md
mindspore_cpu_win_install_pip.md
mindspore_cpu_win_install_pip_en.md
mindspore_cpu_win_install_source.md
mindspore_cpu_win_install_source_en.md
mindspore_gpu_install_conda.md
mindspore_gpu_install_pip.md
mindspore_gpu_install_pip_en.md
mindspore_gpu_install_source.md
mindspore_gpu_install_source_en.md
lite
resource
tools
tutorials
.gitignore
CONTRIBUTING_DOC.md
CONTRIBUTING_DOC_CN.md
LICENSE
NOTICE
README.md
README_CN.md
克隆/下载
mindspore_cpu_win_install_pip_en.md 2.63 KB
一键复制 编辑 原始数据 按行查看 历史

# Installing MindSpore in CPU by pip (Windows)

View Source On Gitee

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

System Environment Information Confirmation

  • Confirm that Windows 10 is installed with x86 architecture 64-bit operating system.
  • 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 Huaweicloud to install.
  • After installing Python, add Python and pip to the environment variable.
    • Add Python: Control Panel -> System -> Advanced System Settings -> Environment Variables. Double click the Path in the environment variable and add the path of python.exe.
    • Add pip: The Scripts folder in the same directory of python.exe is the pip file that comes with Python, add it to the system environment variable.

Installing MindSpore

pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/{version}/MindSpore/cpu/windows_x64/mindspore-{version}-cp37-cp37m-win_amd64.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 downloading MindSpore 1.0.1, {version} should be 1.0.1.

Installation Verification

python -c "import mindspore;print(mindspore.__version__)"

If the MindSpore version number is output, 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 update MindSpore version:

pip install --upgrade mindspore
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mindspore/docs.git
git@gitee.com:mindspore/docs.git
mindspore
docs
docs
r1.0

搜索帮助