Windows64位下Mindspore安装教程
说明:本文详细介绍在操作系统为Windows64位、虚拟环境为Anaconda3.7、python版本为3.7.5的背景下,安装Mindspore1.1.0的步骤。官网安装教程➡MindSpore安装指南
1. 打开Anaconda Prompt,建立虚拟环境并激活
命令如下:
conda create -n mindspore python=3.7.5
conda activate mindspore
图示如下:
2. 安装mindspore,去官网复制粘贴(老慢了...)
命令如下:
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.1.0/MindSpore/cpu/windows_x64/mindspore-1.1.0-cp37-cp37m-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
图示如下:
另:如出现以下报错➡
Cannot uninstall 'xxxxxx'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
快速解决办法:输入以下命令即可
pip install xxxxxx --upgrade --ignore-installed xxxxxx
3. 验证是否安装成功
命令如下:
python -c "import mindspore;print(mindspore.__version__)"
图示如下:
成功啦🎉🎉🎉
4. 版本更新
命令如下:
pip install --upgrade mindspore
图示如下: