From 67f049e17715e8ba32441bf503c5f0c81108fe8b Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Wed, 23 Jul 2025 15:42:20 +0800 Subject: [PATCH] update install instructions for 2.7.0rc1 --- install/mindspore_ascend_install_conda.md | 4 +- install/mindspore_ascend_install_conda_en.md | 4 +- install/mindspore_ascend_install_docker.md | 153 ---------- install/mindspore_ascend_install_docker_en.md | 153 ---------- install/mindspore_ascend_install_pip.md | 20 +- install/mindspore_ascend_install_pip_en.md | 20 +- install/mindspore_ascend_install_source.md | 6 +- install/mindspore_ascend_install_source_en.md | 6 +- install/mindspore_cpu_install_docker.md | 126 -------- install/mindspore_cpu_install_docker_en.md | 126 -------- install/mindspore_cpu_install_nightly.md | 147 ---------- install/mindspore_cpu_install_nightly_en.md | 147 ---------- install/mindspore_cpu_install_pip.md | 16 +- install/mindspore_cpu_install_pip_en.md | 16 +- install/mindspore_cpu_install_source.md | 2 +- install/mindspore_cpu_install_source_en.md | 2 +- install/mindspore_cpu_mac_install_conda.md | 90 ------ install/mindspore_cpu_mac_install_conda_en.md | 90 ------ install/mindspore_cpu_mac_install_nightly.md | 90 ------ .../mindspore_cpu_mac_install_nightly_en.md | 90 ------ install/mindspore_cpu_mac_install_pip.md | 16 +- install/mindspore_cpu_mac_install_pip_en.md | 16 +- install/mindspore_cpu_mac_install_source.md | 2 +- .../mindspore_cpu_mac_install_source_en.md | 2 +- install/mindspore_cpu_win_install_conda.md | 85 ------ install/mindspore_cpu_win_install_conda_en.md | 85 ------ install/mindspore_cpu_win_install_nightly.md | 64 ----- .../mindspore_cpu_win_install_nightly_en.md | 64 ----- install/mindspore_cpu_win_install_pip.md | 10 +- install/mindspore_cpu_win_install_pip_en.md | 10 +- install/mindspore_cpu_win_install_source.md | 2 +- .../mindspore_cpu_win_install_source_en.md | 2 +- install/mindspore_gpu_install_nightly.md | 270 ------------------ install/mindspore_gpu_install_nightly_en.md | 270 ------------------ install/mindspore_gpu_install_pip.md | 10 +- install/mindspore_gpu_install_pip_en.md | 10 +- install/mindspore_gpu_install_source.md | 2 +- install/mindspore_gpu_install_source_en.md | 2 +- resource/release/release_list_en.md | 25 ++ resource/release/release_list_zh_cn.md | 27 ++ 40 files changed, 142 insertions(+), 2140 deletions(-) delete mode 100644 install/mindspore_ascend_install_docker.md delete mode 100644 install/mindspore_ascend_install_docker_en.md delete mode 100644 install/mindspore_cpu_install_docker.md delete mode 100644 install/mindspore_cpu_install_docker_en.md delete mode 100644 install/mindspore_cpu_install_nightly.md delete mode 100644 install/mindspore_cpu_install_nightly_en.md delete mode 100644 install/mindspore_cpu_mac_install_conda.md delete mode 100644 install/mindspore_cpu_mac_install_conda_en.md delete mode 100644 install/mindspore_cpu_mac_install_nightly.md delete mode 100644 install/mindspore_cpu_mac_install_nightly_en.md delete mode 100644 install/mindspore_cpu_win_install_conda.md delete mode 100644 install/mindspore_cpu_win_install_conda_en.md delete mode 100644 install/mindspore_cpu_win_install_nightly.md delete mode 100644 install/mindspore_cpu_win_install_nightly_en.md delete mode 100644 install/mindspore_gpu_install_nightly.md delete mode 100644 install/mindspore_gpu_install_nightly_en.md diff --git a/install/mindspore_ascend_install_conda.md b/install/mindspore_ascend_install_conda.md index 03baf6fdac..2def4199cd 100644 --- a/install/mindspore_ascend_install_conda.md +++ b/install/mindspore_ascend_install_conda.md @@ -38,9 +38,9 @@ 昇腾软件包提供商用版和社区版两种下载途径: -- 商用版下载需要申请权限,优选版本的下载链接与安装方式请参考[Ascend Training Solution 25.0.RC1 安装指引文档](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026)。 +- 商用版下载需要申请权限,下载链接即将发布。 -- 社区版下载不受限制,下载链接请前往[CANN社区版](https://www.hiascend.com/developer/download/community/result?module=cann),推荐优先选择`8.1.RC1.beta1`版本,以及在[固件与驱动](https://www.hiascend.com/hardware/firmware-drivers/community)链接中获取对应的固件和驱动安装包,安装包的选择与安装方式请参照上述的商用版安装指引文档。 +- 社区版下载不受限制,下载链接即将发布。 安装包默认安装路径为`/usr/local/Ascend`。安装后确认当前用户有权限访问昇腾AI处理器配套软件包的安装路径,若无权限,需要root用户将当前用户添加到`/usr/local/Ascend`所在的用户组。 diff --git a/install/mindspore_ascend_install_conda_en.md b/install/mindspore_ascend_install_conda_en.md index ba04b96e49..140ecc6b15 100644 --- a/install/mindspore_ascend_install_conda_en.md +++ b/install/mindspore_ascend_install_conda_en.md @@ -38,9 +38,9 @@ The following describes how to install the third-party dependencies. Ascend software package provides two distributions, commercial edition and community edition: -- Commercial edition needs approval from Ascend to download, for detailed installation guide of the recommended version, please refer to [Ascend Training Solution 25.0.RC1](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026) +- Commercial edition needs approval from Ascend to download, release date is TBD. -- Community edition has no restrictions, the recommended version is `8.1.RC1.beta1` in [CANN community edition](https://www.hiascend.com/developer/download/community/result?module=cann), then choose relevant driver and firmware packages in [firmware and driver](https://www.hiascend.com/hardware/firmware-drivers/community). Please refer to the abovementioned commercial edition installation guide to choose which packages are to be installed and how to install them. +- Community edition has no restrictions, release date is TBD. The default installation path of the installation package is `/usr/local/Ascend`. Ensure that the current user has the right to access the installation path `/usr/local/Ascend` of Ascend AI processor software package. If not, the root user needs to add the current user to the user group where `/usr/local/Ascend` is located. diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md deleted file mode 100644 index e5d26db44c..0000000000 --- a/install/mindspore_ascend_install_docker.md +++ /dev/null @@ -1,153 +0,0 @@ -# Docker方式安装MindSpore Ascend版本 - - - -- [Docker方式安装MindSpore Ascend版本](#docker方式安装mindspore-ascend版本) - - [确认系统环境信息](#确认系统环境信息) - - [安装昇腾AI处理器配套软件包](#安装昇腾ai处理器配套软件包) - - [获取MindSpore镜像](#获取mindspore镜像) - - [运行MindSpore镜像](#运行mindspore镜像) - - [验证是否安装成功](#验证是否安装成功) - - [升级MindSpore版本](#升级mindspore版本) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_ascend_install_docker.md) - -[Docker](https://docs.docker.com/get-docker/)是一个开源的应用容器引擎,支持将开发者的应用和依赖包打包到一个轻量级、可移植的容器中。通过使用Docker,可以实现MindSpore的快速部署,并与系统环境隔离。 - -本文档介绍如何在Ascend环境的Linux系统上,使用Docker方式快速安装MindSpore。 - -MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/swr/index.html)上。 - -目前容器化构建选项支持情况如下: - -| 硬件平台 | Docker镜像仓库 | 标签 | 说明 | -| :----- | :------------------------ | :----------------------- | :--------------------------------------- | -| Ascend | `mindspore/mindspore-ascend` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | - -> `x.y.z`对应MindSpore版本号,例如安装2.6.0版本MindSpore时,`x.y.z`应写为2.6.0。 - -## 确认系统环境信息 - -- 确认安装基于ARM的Ubuntu 18.04 / CentOS 7.6 64位操作系统。 - -- 确认安装[Docker 18.03或更高版本](https://docs.docker.com/get-docker/)。 - -## 安装昇腾AI处理器配套软件包 - -昇腾软件包提供商用版和社区版两种下载途径: - -- 商用版下载需要申请权限,优选版本的下载链接与安装方式请参考[Ascend Training Solution 25.0.RC1 安装指引文档](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026)。 - -- 社区版下载不受限制,下载链接请前往[CANN社区版](https://www.hiascend.com/developer/download/community/result?module=cann),推荐优先选择`8.1.RC1.beta1`版本,以及在[固件与驱动](https://www.hiascend.com/hardware/firmware-drivers/community)链接中获取对应的固件和驱动安装包,安装包的选择与安装方式请参照上述的商用版安装指引文档。 - -安装包默认安装路径为`/usr/local/Ascend`。安装后确认当前用户有权限访问昇腾AI处理器配套软件包的安装路径,若无权限,需要root用户将当前用户添加到`/usr/local/Ascend`所在的用户组。 - -## 获取MindSpore镜像 - -对于`Ascend`后端,可以直接使用以下命令获取最新的稳定镜像: - -```bash -docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} -``` - -其中: - -- `{tag}`对应上述表格中的标签。 - -## 运行MindSpore镜像 - -执行以下命令,启动Docker容器实例: - -```bash -docker run -it -u root --ipc=host \ - --device=/dev/davinci0 \ - --device=/dev/davinci1 \ - --device=/dev/davinci2 \ - --device=/dev/davinci3 \ - --device=/dev/davinci4 \ - --device=/dev/davinci5 \ - --device=/dev/davinci6 \ - --device=/dev/davinci7 \ - --device=/dev/davinci_manager \ - --device=/dev/devmm_svm \ - --device=/dev/hisi_hdc \ - -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ - -v /var/log/npu/:/usr/slog \ - swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} \ - /bin/bash -``` - -其中: - -- `{tag}`对应上述表格中的标签。 - -## 验证是否安装成功 - -按照上述步骤进入MindSpore容器后,测试Docker容器是否正常工作,请执行下面的Python代码并检查输出: - -**方法一:** - -执行以下命令: - -```bash -python -c "import mindspore;mindspore.run_check()" -``` - -如果输出: - -```text -MindSpore version: 版本号 -The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! -``` - -至此,你已经成功通过Docker方式安装了MindSpore Ascend版本。 - -**方法二:** - -执行以下代码: - -```python -import numpy as np -import mindspore as ms -import mindspore.ops as ops - -ms.set_device("Ascend") -x = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -y = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -print(ops.add(x, y)) -``` - -代码成功执行时会输出: - -```text -[[[[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]]]] -``` - -至此,你已经成功通过Docker方式安装了MindSpore Ascend版本。 - -## 升级MindSpore版本 - -当需要升级MindSpore版本时: - -- 根据需要升级的MindSpore版本,升级对应的Ascend AI处理器配套软件包。 -- 直接使用以下命令获取最新的稳定镜像: - - ```bash - docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} - ``` - - 其中: - - - `{tag}`对应上述表格中的标签。 diff --git a/install/mindspore_ascend_install_docker_en.md b/install/mindspore_ascend_install_docker_en.md deleted file mode 100644 index 71640bc0cf..0000000000 --- a/install/mindspore_ascend_install_docker_en.md +++ /dev/null @@ -1,153 +0,0 @@ -# Installing MindSpore in Ascend by Docker - - - -- [Installing MindSpore in Ascend by Docker](#installing-mindspore-in-ascend-by-docker) - - [System Environment Information Confirmation](#system-environment-information-confirmation) - - [Installing Ascend AI processor software package](#installing-ascend-ai-processor-software-package) - - [Obtaining MindSpore Image](#obtaining-mindspore-image) - - [Running MindSpore Image](#running-mindspore-image) - - [Installation Verification](#installation-verification) - - [Version Update](#version-update) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_ascend_install_docker_en.md) - -[Docker](https://docs.docker.com/get-docker/) is an open source application container engine, and supports packaging developers' applications and dependency packages into a lightweight, portable container. By using Docker, MindSpore can be rapidly deployed and separated from the system environment. - -This document describes how to install MindSpore by Docker on Linux in an Ascend environment. - -The Docker image of MindSpore is hosted on [Huawei SWR](https://support.huaweicloud.com/swr/index.html). - -The current support for containerized build options is as follows: - -| Hardware | Docker Image Hub | Label | Note | -| :----- | :------------------------ | :----------------------- | :--------------------------------------- | -| Ascend | `mindspore/mindspore-ascend` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | - -> `x.y.z` corresponds to the MindSpore version number. For example, when MindSpore version 2.6.0 is installed, `x.y.z` should be written as 2.6.0. - -## System Environment Information Confirmation - -- Ensure that Ubuntu 18.04 / CentOS 7.6 is installed with the 64-bit ARM architecture operating system. - -- Ensure that [Docker 18.03 or later](https://docs.docker.com/get-docker/) is installed. - -## Installing Ascend AI processor software package - -Ascend software package provides two distributions, commercial edition and community edition: - -- Commercial edition needs approval from Ascend to download, for detailed installation guide of the recommended version, please refer to [Ascend Training Solution 25.0.RC1](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026) - -- Community edition has no restrictions, the recommended version is `8.1.RC1.beta1` in [CANN community edition](https://www.hiascend.com/developer/download/community/result?module=cann), then choose relevant driver and firmware packages in [firmware and driver](https://www.hiascend.com/hardware/firmware-drivers/community). Please refer to the abovementioned commercial edition installation guide to choose which packages are to be installed and how to install them. - -The default installation path of the installation package is `/usr/local/Ascend`. Ensure that the current user has the right to access the installation path `/usr/local/Ascend` of Ascend AI processor software package. If not, the root user needs to add the current user to the user group where `/usr/local/Ascend` is located. - -## Obtaining MindSpore Image - -For the `Ascend` backend, you can directly use the following command to obtain the latest stable image: - -```bash -docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} -``` - -of which, - -- `{tag}` corresponds to the label in the above table. - -## Running MindSpore Image - -Execute the following command to start the Docker container instance: - -```bash -docker run -it -u root --ipc=host \ - --device=/dev/davinci0 \ - --device=/dev/davinci1 \ - --device=/dev/davinci2 \ - --device=/dev/davinci3 \ - --device=/dev/davinci4 \ - --device=/dev/davinci5 \ - --device=/dev/davinci6 \ - --device=/dev/davinci7 \ - --device=/dev/davinci_manager \ - --device=/dev/devmm_svm \ - --device=/dev/hisi_hdc \ - -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ - -v /var/log/npu/:/usr/slog \ - swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} \ - /bin/bash -``` - -of which, - -- `{tag}` corresponds to the label in the above table. - -## Installation Verification - -After entering the MindSpore container according to the above steps, to test whether the Docker container is working properly, please execute the following Python code and check the output: - -**Method 1:** - -Execute the following command: - -```bash -python -c "import mindspore;mindspore.set_device('Ascend');mindspore.run_check()" -``` - -The outputs should be the same as: - -```text -MindSpore version: __version__ -The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! -``` - -So far, it means MindSpore Ascend has been installed by Docker successfully. - -**Method 2:** - -Execute the following command: - -```python -import numpy as np -import mindspore as ms -import mindspore.ops as ops - -ms.set_device("Ascend") -x = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -y = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -print(ops.add(x, y)) -``` - -The outputs should be the same as: - -```text -[[[[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]]]] -``` - -So far, it means MindSpore Ascend has been installed by Docker successfully. - -## Version Update - -When you need to update the MindSpore version: - -- update corresponding Ascend AI processor software package according to MindSpore package version of which you wish to update. -- directly use the following command to obtain the latest stable image: - - ```bash - docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} - ``` - - of which, - - - `{tag}` corresponds to the label in the above table. diff --git a/install/mindspore_ascend_install_pip.md b/install/mindspore_ascend_install_pip.md index b11b7521e5..c413d2c7b4 100644 --- a/install/mindspore_ascend_install_pip.md +++ b/install/mindspore_ascend_install_pip.md @@ -71,9 +71,9 @@ python -m pip install -U pip 昇腾软件包提供商用版和社区版两种下载途径: -- 商用版下载需要申请权限,优选版本的下载链接与安装方式请参考[Ascend Training Solution 25.0.RC1 安装指引文档](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026)。 +- 商用版下载需要申请权限,下载链接即将发布。 -- 社区版下载不受限制,下载链接请前往[CANN社区版](https://www.hiascend.com/developer/download/community/result?module=cann),推荐优先选择`8.1.RC1.beta1`版本,以及在[固件与驱动](https://www.hiascend.com/hardware/firmware-drivers/community)链接中获取对应的固件和驱动安装包,安装包的选择与安装方式请参照上述的商用版安装指引文档。 +- 社区版下载不受限制,下载链接即将发布。 安装包默认安装路径为`/usr/local/Ascend`。安装后确认当前用户有权限访问昇腾AI处理器配套软件包的安装路径,若无权限,需要root用户将当前用户添加到`/usr/local/Ascend`所在的用户组。 @@ -120,27 +120,27 @@ pip install /usr/local/Ascend/ascend-toolkit/latest/lib64/hccl-*-py3-none-any.wh ### 安装MindSpore -首先参考[版本列表](https://www.mindspore.cn/versions),选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.6.0版本为例,执行以下命令。 +首先参考[版本列表](https://www.mindspore.cn/versions),选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.7.0rc1版本为例,执行以下命令。 ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` 然后根据系统架构及Python版本,执行以下命令安装MindSpore。 ```bash # x86_64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装whl包时会自动下载MindSpore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_ascend_install_pip_en.md b/install/mindspore_ascend_install_pip_en.md index 24df3e8be6..3aba2eaca1 100644 --- a/install/mindspore_ascend_install_pip_en.md +++ b/install/mindspore_ascend_install_pip_en.md @@ -71,9 +71,9 @@ python -m pip install -U pip Ascend software package provides two distributions, commercial edition and community edition: -- Commercial edition needs approval from Ascend to download, for detailed installation guide of the recommended version, please refer to [Ascend Training Solution 25.0.RC1](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026) +- Commercial edition needs approval from Ascend to download, release date is TBD. -- Community edition has no restrictions, the recommended version is `8.1.RC1.beta1` in [CANN community edition](https://www.hiascend.com/developer/download/community/result?module=cann), then choose relevant driver and firmware packages in [firmware and driver](https://www.hiascend.com/hardware/firmware-drivers/community). Please refer to the abovementioned commercial edition installation guide to choose which packages are to be installed and how to install them. +- Community edition has no restrictions, release date is TBD. The default installation path of the installation package is `/usr/local/Ascend`. Ensure that the current user has the right to access the installation path of Ascend AI processor software package. If not, the root user needs to add the current user to the user group where `/usr/local/Ascend` is located. @@ -120,27 +120,27 @@ pip install /usr/local/Ascend/ascend-toolkit/latest/lib64/hccl-*-py3-none-any.wh ### Installing MindSpore -First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.6.0 as an example, execute the following commands. +First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.7.0rc1 as an example, execute the following commands. ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` Then run the following commands to install MindSpore according to the system architecture and Python version. ```bash # x86_64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependencies of MindSpore are automatically downloaded during the .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependencies by yourself. diff --git a/install/mindspore_ascend_install_source.md b/install/mindspore_ascend_install_source.md index c0eb8b3218..74895e5493 100644 --- a/install/mindspore_ascend_install_source.md +++ b/install/mindspore_ascend_install_source.md @@ -82,9 +82,9 @@ python --version 昇腾软件包提供商用版和社区版两种下载途径: -- 商用版下载需要申请权限,优选版本的下载链接与安装方式请参考[Ascend Training Solution 25.0.RC1 安装指引文档](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026)。 +- 商用版下载需要申请权限,下载链接即将发布。 -- 社区版下载不受限制,下载链接请前往[CANN社区版](https://www.hiascend.com/developer/download/community/result?module=cann),推荐优先选择`8.1.RC1.beta1`版本,以及在[固件与驱动](https://www.hiascend.com/hardware/firmware-drivers/community)链接中获取对应的固件和驱动安装包,安装包的选择与安装方式请参照上述的商用版安装指引文档。 +- 社区版下载不受限制,下载链接即将发布。 安装包默认安装路径为`/usr/local/Ascend`。安装后确认当前用户有权限访问昇腾AI处理器配套软件包的安装路径,若无权限,需要root用户将当前用户添加到`/usr/local/Ascend`所在的用户组。 @@ -262,7 +262,7 @@ bash build.sh -e ascend -S on ## 安装MindSpore ```bash -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装whl包时会自动下载MindSpore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_ascend_install_source_en.md b/install/mindspore_ascend_install_source_en.md index 9e147a3bd8..25e8fbbacb 100644 --- a/install/mindspore_ascend_install_source_en.md +++ b/install/mindspore_ascend_install_source_en.md @@ -82,9 +82,9 @@ python --version Ascend software package provides two distributions, commercial edition and community edition: -- Commercial edition needs approval from Ascend to download, for detailed installation guide of the recommended version, please refer to [Ascend Training Solution 25.0.RC1](https://support.huawei.com/enterprise/zh/doc/EDOC1100472026) +- Commercial edition needs approval from Ascend to download, release date is TBD. -- Community edition has no restrictions, the recommended version is `8.1.RC1.beta1` in [CANN community edition](https://www.hiascend.com/developer/download/community/result?module=cann), then choose relevant driver and firmware packages in [firmware and driver](https://www.hiascend.com/hardware/firmware-drivers/community). Please refer to the abovementioned commercial edition installation guide to choose which packages are to be installed and how to install them. +- Community edition has no restrictions, release date is TBD. The default installation path of the installation package is `/usr/local/Ascend`. Ensure that the current user has the right to access the installation path `/usr/local/Ascend` of Ascend AI processor software package. If not, the root user needs to add the current user to the user group where `/usr/local/Ascend` is located. @@ -262,7 +262,7 @@ Where: ## Installing MindSpore ```bash -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependencies of MindSpore are automatically downloaded during the .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependencies by yourself. diff --git a/install/mindspore_cpu_install_docker.md b/install/mindspore_cpu_install_docker.md deleted file mode 100644 index 78eea9dfd0..0000000000 --- a/install/mindspore_cpu_install_docker.md +++ /dev/null @@ -1,126 +0,0 @@ -# Docker方式安装MindSpore CPU版本 - - - -- [Docker方式安装MindSpore CPU版本](#docker方式安装mindspore-cpu版本) - - [确认系统环境信息](#确认系统环境信息) - - [获取MindSpore镜像](#获取mindspore镜像) - - [运行MindSpore镜像](#运行mindspore镜像) - - [验证是否安装成功](#验证是否安装成功) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_install_docker.md) - -[Docker](https://docs.docker.com/get-docker/)是一个开源的应用容器引擎,支持将开发者的应用和依赖包打包到一个轻量级、可移植的容器中。通过使用Docker,可以实现MindSpore的快速部署,并与系统环境隔离。 - -本文档介绍如何在CPU环境的Linux系统上,使用Docker方式快速安装MindSpore。 - -MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/swr/index.html)上。 - -目前容器化构建选项支持情况如下: - -| 硬件平台 | Docker镜像仓库 | 标签 | 说明 | -| :----- | :------------------------ | :----------------------- | :--------------------------------------- | -| CPU | `mindspore/mindspore-cpu` | `x.y.z` | 已经预安装MindSpore `x.y.z` CPU版本的生产环境。 | -| | | `devel` | 提供开发环境从源头构建MindSpore(`CPU`后端)。安装详情请参考。 | -| | | `runtime` | 提供运行时环境,未安装MindSpore二进制包(`CPU`后端)。 | - -> `x.y.z`对应MindSpore版本号,例如安装1.1.0版本MindSpore时,`x.y.z`应写为1.1.0。 - -## 确认系统环境信息 - -- 确认安装基于x86架构的64位Linux操作系统,其中Ubuntu 18.04是经过验证的。 -- 确认安装[Docker 18.03或者更高版本](https://docs.docker.com/get-docker/)。 - -## 获取MindSpore镜像 - -对于`CPU`后端,可以直接使用以下命令获取最新的稳定镜像: - -```bash -docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-cpu:{tag} -``` - -其中: - -- `{tag}`对应上述表格中的标签。 - -## 运行MindSpore镜像 - -执行以下命令启动Docker容器实例: - -```bash -docker run -it swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-cpu:{tag} /bin/bash -``` - -其中: - -- `{tag}`对应上述表格中的标签。 - -## 验证是否安装成功 - -- 如果你安装的是指定版本`x.y.z`的容器。 - - 按照上述步骤进入MindSpore容器后,测试Docker是否正常工作,请执行下面的Python代码,并检查输出: - - **方法一:** - - 执行以下命令: - - ```bash - python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" - ``` - - 如果输出: - - ```text - MindSpore version: 版本号 - The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! - ``` - - 至此,你已经成功通过Docker方式安装了MindSpore CPU版本。 - - **方法二:** - - 执行以下代码: - - ```python - import numpy as np - import mindspore as ms - import mindspore.ops as ops - - ms.set_context(mode=ms.PYNATIVE_MODE) - ms.set_device(device_target="CPU") - - x = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) - y = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) - print(ops.add(x, y)) - ``` - - 代码成功执行时会输出: - - ```text - [[[[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]]]] - ``` - - 至此,你已经成功通过Docker方式安装了MindSpore CPU版本。 - -- 如果你安装的是`runtime`标签的容器,需要自行安装MindSpore。 - - 进入[MindSpore安装指南页面](https://www.mindspore.cn/install),选择CPU硬件平台、Linux-x86_64操作系统和pip的安装方式,获得安装指南。运行容器后参考安装指南,通过pip方式安装MindSpore CPU版本,并进行验证。 - -- 如果你安装的是`devel`标签的容器,需要自行编译并安装MindSpore。 - - 进入[MindSpore安装指南页面](https://www.mindspore.cn/install),选择CPU硬件平台、Linux-x86_64操作系统和Source的安装方式,获得安装指南。运行容器后,下载MindSpore代码仓,并参考安装指南,通过源码编译方式安装MindSpore CPU版本,并进行验证。 - -如果您想了解更多关于MindSpore Docker镜像的构建过程,请查看[docker repo](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/scripts/docker/README.md#)了解详细信息。 diff --git a/install/mindspore_cpu_install_docker_en.md b/install/mindspore_cpu_install_docker_en.md deleted file mode 100644 index 7ffb42d619..0000000000 --- a/install/mindspore_cpu_install_docker_en.md +++ /dev/null @@ -1,126 +0,0 @@ -# Installing MindSpore in CPU by Docker - - - -- [Installing MindSpore in CPU by Docker](#installing-mindSpore-in-cpu-by-docker) - - [System Environment Information Confirmation](#system-environment-information-confirmation) - - [Obtaining MindSpore Image](#obtaining-mindspore-image) - - [Running MindSpore Image](#running-mindspore-image) - - [Installation Verification](#installation-verification) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_install_docker_en.md) - -[Docker](https://docs.docker.com/get-docker/) is an open source application container engine, and supports packaging developers' applications and dependency packages into a lightweight, portable container. By using Docker, MindSpore can be rapidly deployed and separated from the system environment. - -This document describes how to install MindSpore by Docker on Linux in a CPU environment. - -The Docker image of MindSpore is hosted on [Huawei SWR](https://support.huaweicloud.com/swr/index.html). - -The current support for the containerization build option is as follows: - -| Hardware | Docker Image Hub | Label | Note | -| :----- | :------------------------ | :----------------------- | :--------------------------------------- | -| CPU | `mindspore/mindspore-cpu` | `x.y.z` | A production environment with the MindSpore `x.y.z` CPU version pre-installed. | -| | | `devel` | Provide a development environment to build MindSpore from the source (`CPU` backend). For installation details, please refer to . | -| | | `runtime` | Provide runtime environment, MindSpore binary package (`CPU` backend) is not installed. | - -> `x.y.z` corresponds to the MindSpore version number. For example, when MindSpore version 1.1.0 is installed, `x.y.z` should be written as 1.1.0. - -## System Environment Information Confirmation - -- Ensure that a 64-bit Linux operating system with the x86 architecture is installed, where Ubuntu 18.04 is verified. -- Ensure that [Docker 18.03 or later versioin](https://docs.docker.com/get-docker/) is installed. - -## Obtaining MindSpore Image - -For the `CPU` backend, you can directly use the following command to obtain the latest stable image: - -```bash -docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-cpu:{tag} -``` - -of which, - -- `{tag}` corresponds to the label in the above table. - -## Running MindSpore Image - -Execute the following command to start the Docker container instance: - -```bash -docker run -it swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-cpu:{tag} /bin/bash -``` - -of which, - -- `{tag}` corresponds to the label in the above table. - -## Installation Verification - -- If you are installing the container of the specified version `x.y.z`. - - After entering the MindSpore container according to the above steps, to test whether the Docker is working properly, please run the following Python code and check the output: - - **Method 1:** - - Execute the following command: - - ```bash - python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" - ``` - - - The outputs should be the same as: - - ```text - MindSpore version: __version__ - The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! - ``` - - So far, it means MindSpore CPU has been installed by Docker successfully. - - **Method 2:** - - Execute the following command: - - ```python - import numpy as np - import mindspore as ms - import mindspore.ops as ops - - ms.set_context(mode=ms.PYNATIVE_MODE) - ms.set_device(device_target="CPU") - - x = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) - y = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) - print(ops.add(x, y)) - ``` - - When the code is successfully run, the outputs should be the same as: - - ```text - [[[[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]]]] - ``` - - So far, it means MindSpore CPU has been installed by Docker successfully. - -- If you install a container with the label of `runtime`, you need to install MindSpore yourself. - - Go to [MindSpore Installation Guide Page](https://www.mindspore.cn/install/en), choose the CPU hardware platform, Linux-x86_64 operating system and pip installation method to get the installation guide. Refer to the installation guide after running the container and install the MindSpore CPU version by pip, and verify it. - -- If you install a container with the label of `devel`, you need to compile and install MindSpore yourself. - - Go to [MindSpore Installation Guide Page](https://www.mindspore.cn/install/en), and choose the CPU hardware platform, Linux-x86_64 operating system and pip installation method to get the installation guide. After running the container, download the MindSpore code repository and refer to the installation guide, install the MindSpore CPU version through source code compilation, and verify it. - -If you want to know more about the MindSpore Docker image building process, please check [docker repo](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/scripts/docker/README.md#) for details. diff --git a/install/mindspore_cpu_install_nightly.md b/install/mindspore_cpu_install_nightly.md deleted file mode 100644 index 1d81f1a6de..0000000000 --- a/install/mindspore_cpu_install_nightly.md +++ /dev/null @@ -1,147 +0,0 @@ -# pip方式安装MindSpore CPU Nightly版本 - - - -- [pip方式安装MindSpore CPU Nightly版本](#pip方式安装mindspore-cpu-nightly版本) - - [安装MindSpore与依赖软件](#安装mindspore与依赖软件) - - [安装Python](#安装python) - - [安装GCC](#安装gcc) - - [下载安装MindSpore](#下载安装mindspore) - - [验证是否成功安装](#验证是否成功安装) - - [升级MindSpore版本](#升级mindspore版本) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_install_nightly.md) - -MindSpore Nightly是包含当前最新功能与bugfix的预览版本,但是可能未经完整的测试与验证,希望体验最新功能或者问题修复的用户可以使用该版本。 - -本文档介绍如何在CPU环境的Linux系统上,使用pip方式快速安装MindSpore Nightly。 - -在确认系统环境信息的过程中,如需了解如何安装第三方依赖软件,可以参考社区提供的实践——[在Ubuntu(CPU)上进行源码编译安装MindSpore](https://www.mindspore.cn/news/newschildren?id=365)中的第三方依赖软件安装相关部分,在此感谢社区成员[damon0626](https://gitee.com/damon0626)的分享。 - -## 安装MindSpore与依赖软件 - -下表列出了安装MindSpore所需的系统环境和第三方依赖。 - -| 软件名称 | 版本 | 作用 | -| --------------------- | ---------------- | ----------------------------- | -| Ubuntu | 18.04 | 运行MindSpore的操作系统 | -| [Python](#安装python) | 3.9-3.11 | MindSpore的使用依赖Python环境 | -| [GCC](#安装gcc) | 7.3.0-9.4.0 | 用于编译MindSpore的C++编译器 | - -下面给出第三方依赖的安装方法。 - -### 安装Python - -[Python](https://www.python.org/)可通过多种方式进行安装。 - -- 通过Conda安装Python - - 安装Miniconda: - - ```bash - cd /tmp - curl -O https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py37_4.10.3-Linux-$(arch).sh - bash Miniconda3-py37_4.10.3-Linux-$(arch).sh -b - cd - - . ~/miniconda3/etc/profile.d/conda.sh - conda init bash - ``` - - 安装完成后,可以为Conda设置清华源加速下载,参考[此处](https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/)。 - - 创建虚拟环境,以Python 3.9.11为例: - - ```bash - conda create -n mindspore_py39 python=3.9.11 -y - conda activate mindspore_py9 - ``` - -- 通过APT安装Python,命令如下。 - - ```bash - sudo apt-get update - sudo apt-get install software-properties-common -y - sudo add-apt-repository ppa:deadsnakes/ppa -y - sudo apt-get install python3.9 python3.9-dev python3.9-distutils python3-pip -y - # 将新安装的Python设为默认 - sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 100 - # 安装pip - python -m pip install pip -i https://repo.huaweicloud.com/repository/pypi/simple - sudo update-alternatives --install /usr/bin/pip pip ~/.local/bin/pip3.9 100 - pip config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple - ``` - - 若要安装其他Python版本,只需更改命令中的`3.9`。 - -可以通过以下命令查看Python版本。 - -```bash -python --version -``` - -### 安装GCC - -可以通过以下命令安装GCC。 - -```bash -sudo apt-get install gcc-7 -y -``` - -如果要安装更高版本的GCC,使用以下命令安装GCC 8。 - -```bash -sudo apt-get install gcc-8 -y -``` - -或者安装GCC 9。 - -```bash -sudo apt-get install software-properties-common -y -sudo add-apt-repository ppa:ubuntu-toolchain-r/test -sudo apt-get update -sudo apt-get install gcc-9 -y -``` - -## 下载安装MindSpore - -执行以下命令安装MindSpore: - -```bash -pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple -``` - -其中: - -- 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 -- pip会自动安装当前最新版本的MindSpore Nightly版本,如果需要安装指定版本,请参照下方升级MindSpore版本相关指导,在下载时手动指定版本。 - -## 验证是否成功安装 - -执行以下命令: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -如果输出: - -```text -MindSpore version: 版本号 -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -说明MindSpore安装成功了。 - -## 升级MindSpore版本 - -当需要升级MindSpore版本时,可执行如下命令: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -其中: - -- 升级到rc版本时,需要手动指定`{version}`为rc版本号,例如1.6.0rc1.dev20211125;如果希望自动升级到最新版本,`=={version}`字段可以缺省。 diff --git a/install/mindspore_cpu_install_nightly_en.md b/install/mindspore_cpu_install_nightly_en.md deleted file mode 100644 index 8884252a19..0000000000 --- a/install/mindspore_cpu_install_nightly_en.md +++ /dev/null @@ -1,147 +0,0 @@ -# Installing MindSpore CPU Nightly by pip - - - -- [Installing MindSpore CPU Nightly by pip](#installing-mindspore-cpu-nightly-by-pip) - - [Installing MindSpore and dependencies](#installing-mindspore-and-dependencies) - - [Installing Python](#installing-python) - - [Installing GCC](#installing-gcc) - - [Downloading and Installing MindSpore](#downloading-and-installing-mindspore) - - [Installation Verification](#installation-verification) - - [Version Update](#version-update) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_install_nightly_en.md) - -MindSpore Nightly is a preview version which includes latest features and bugfixes, not fully supported and tested. Install MindSpore Nightly version if you wish to try out the latest features or bug fixes can use this version. - -This document describes how to install MindSpore Nightly by pip on Linux in a CPU environment. - -In the process of confirming the system environment information, if you need to know how to install third-party dependent software, you can refer to the practice provided by the community - [Source code compilation and installation on Ubuntu (CPU) MindSpore](https://www.mindspore.cn/news/newschildren?id=365) in the third-party dependent software installation related section, hereby thank the community members [damon0626]( https://gitee.com/damon0626) sharing. - -## Installing MindSpore and dependencies - -The following table lists the system environment and third-party dependencies required to install MindSpore. - -| software | version | description | -| ------------------------------ | ----------- | ------------------------------------------------------- | -| Ubuntu | 18.04 | OS for running MindSpore | -| [Python](#installing-python) | 3.9-3.11 | Python environment that MindSpore depends | -| [GCC](#installing-gcc) | 7.3.0-9.4.0 | C++ compiler for compiling MindSpore | - -The following describes how to install the third-party dependencies. - -### Installing Python - -[Python](https://www.python.org/) can be installed in multiple ways. - -- Install Python with Conda. - - Install Miniconda: - - ```bash - cd /tmp - curl -O https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py37_4.10.3-Linux-$(arch).sh - bash Miniconda3-py37_4.10.3-Linux-$(arch).sh -b - cd - - . ~/miniconda3/etc/profile.d/conda.sh - conda init bash - ``` - - After the installation is complete, you can set up Tsinghua source acceleration download for Conda, and see [here](https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/). - - Create a virtual environment, taking Python 3.9.11 as an example: - - ```bash - conda create -n mindspore_py39 python=3.9.11 -y - conda activate mindspore_py39 - ``` - -- Or install Python via APT with the following command. - - ```bash - sudo apt-get update - sudo apt-get install software-properties-common -y - sudo add-apt-repository ppa:deadsnakes/ppa -y - sudo apt-get install python3.9 python3.9-dev python3.9-distutils python3-pip -y - # set new installed Python as default - sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 100 - # install pip - python -m pip install pip -i https://repo.huaweicloud.com/repository/pypi/simple - sudo update-alternatives --install /usr/bin/pip pip ~/.local/bin/pip3.9 100 - pip config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple - ``` - - To install other Python versions, just change `3.9` in the command. - -Run the following command to check the Python version. - -```bash -python --version -``` - -### Installing GCC - -Run the following commands to install GCC. - -```bash -sudo apt-get install gcc-7 -y -``` - -To install a later version of GCC, run the following command to install GCC 8. - -```bash -sudo apt-get install gcc-8 -y -``` - -Or install GCC 9. - -```bash -sudo apt-get install software-properties-common -y -sudo add-apt-repository ppa:ubuntu-toolchain-r/test -sudo apt-get update -sudo apt-get install gcc-9 -y -``` - -## Downloading and Installing MindSpore - -Execute the following command to install MindSpore: - -```bash -pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple -``` - -Of which, - -- When the network is connected, dependencies are automatically downloaded during .whl package installation. (For details about the dependencies, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependencies by yourself. -- pip will be installing the latest version of MindSpore Nightly automatically. If you wish to specify the version to be installed, please refer to the instruction below regarding to version update, and specify version manually. - -## Installation Verification - -Execute the following command: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -The outputs should be the same as: - -```text -MindSpore version: __version__ -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -It means MindSpore has been installed successfully. - -## Version Update - -Using the following command if you need to update the MindSpore version: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -Of which, - -- When updating to a release candidate (RC) version, set `{version}` to the RC version number, for example, 2.0.0.rc1. When updating to a stable release, you can remove `=={version}`. diff --git a/install/mindspore_cpu_install_pip.md b/install/mindspore_cpu_install_pip.md index 13f7e6f95c..de5c4fe6ee 100644 --- a/install/mindspore_cpu_install_pip.md +++ b/install/mindspore_cpu_install_pip.md @@ -83,27 +83,27 @@ sudo apt-get install gcc-9 -y ### 安装MindSpore -首先参考[版本列表](https://www.mindspore.cn/versions),选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.6.0版本为例,执行以下命令。 +首先参考[版本列表](https://www.mindspore.cn/versions),选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.7.0rc1版本为例,执行以下命令。 ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` 然后根据系统架构及Python版本,执行以下命令安装MindSpore。 ```bash # x86_64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_cpu_install_pip_en.md b/install/mindspore_cpu_install_pip_en.md index ea44063b6b..5945f14a99 100644 --- a/install/mindspore_cpu_install_pip_en.md +++ b/install/mindspore_cpu_install_pip_en.md @@ -83,27 +83,27 @@ sudo apt-get install gcc-9 -y ### Installing MindSpore -First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.6.0 as an example, execute the following commands. +First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.7.0rc1 as an example, execute the following commands. ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` Then run the following commands to install MindSpore according to the system architecture and Python version. ```bash # x86_64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. diff --git a/install/mindspore_cpu_install_source.md b/install/mindspore_cpu_install_source.md index 7e51e595ae..6f3c4429c3 100644 --- a/install/mindspore_cpu_install_source.md +++ b/install/mindspore_cpu_install_source.md @@ -154,7 +154,7 @@ bash build.sh -e cpu -j4 -S on ## 安装MindSpore ```bash -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_cpu_install_source_en.md b/install/mindspore_cpu_install_source_en.md index c7cd72f627..af46ebe158 100644 --- a/install/mindspore_cpu_install_source_en.md +++ b/install/mindspore_cpu_install_source_en.md @@ -152,7 +152,7 @@ Where: ## Installing MindSpore ```bash -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependencies of MindSpore are automatically downloaded during the .whl package installation. For details about dependencies, see required_package in the [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py). In other cases, install the dependencies by yourself. diff --git a/install/mindspore_cpu_mac_install_conda.md b/install/mindspore_cpu_mac_install_conda.md deleted file mode 100644 index dafbb1c7e3..0000000000 --- a/install/mindspore_cpu_mac_install_conda.md +++ /dev/null @@ -1,90 +0,0 @@ -# Conda方式安装MindSpore CPU版本-macOS - - - -- [Conda方式安装MindSpore CPU版本-macOS](#conda方式安装mindspore-cpu版本-macos) - - [确认系统环境信息](#确认系统环境信息) - - [创建并进入Conda虚拟环境](#创建并进入conda虚拟环境) - - [安装MindSpore](#安装mindspore) - - [验证是否成功安装](#验证是否成功安装) - - [升级MindSpore版本](#升级mindspore版本) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_install_conda.md) - -[Conda](https://docs.conda.io/en/latest/)是一个开源跨平台语言无关的包管理与环境管理系统,允许用户方便地安装不同版本的二进制软件包,以及该计算平台需要的所有库。 - -本文档介绍如何在macOS系统上,使用Conda方式快速安装MindSpore。 - -## 确认系统环境信息 - -- 根据下表中的系统及芯片情况,确定合适的Python与Conda版本,其中macOS版本及芯片信息可点击桌面左上角苹果标志->`关于本机`获悉: - - |芯片|计算架构|macOS版本|支持Python版本|支持Conda版本| - |-|-|-|-|-| - |M1|ARM|11.3|Python 3.9-3.11|Mambaforge 或 Miniforge| - |Intel|x86_64|10.15/11.3|Python 3.9-3.11|Anaconda 或 MiniConda| - -- 确认安装与当前系统及芯片型号兼容的Conda版本。 - - - 如果您喜欢Conda提供的完整能力,可以选择下载[Anaconda3](https://repo.anaconda.com/archive/)或[Mambaforge](https://github.com/conda-forge/miniforge)。 - - 如果您需要节省磁盘空间,或者喜欢自定义安装Conda软件包,可以选择下载[Miniconda3](https://repo.anaconda.com/miniconda/)或[Miniforge](https://github.com/conda-forge/miniforge)。 - -## 创建并进入Conda虚拟环境 - -根据您希望使用的Python版本,创建对应的Conda虚拟环境,并进入虚拟环境。 - -- 如果您希望使用Python3.9.11版本(适配64-bit macOS 10.15或11.3): - - ```bash - conda create -c conda-forge -n mindspore_py39 -c conda-forge python=3.9.11 - conda activate mindspore_py39 - ``` - -## 安装MindSpore - -确认您处于Conda虚拟环境中,并执行以下命令安装最新版本的MindSpore。如需安装其他版本,可参考[版本列表](https://www.mindspore.cn/versions)在`conda install mindspore=`后指定版本号。 - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -在联网状态下,安装Conda安装包时会自动下载MindSpore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 - -## 验证是否成功安装 - -执行以下命令: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -如果输出: - -```text -MindSpore version: 版本号 -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -说明MindSpore安装成功了。 - -## 升级MindSpore版本 - -从MindSpore 1.x升级到MindSpore 2.x版本时,需要先手动卸载旧版本: - -```bash -conda remove mindspore-cpu -``` - -然后安装新版本: - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -从MindSpore 2.x版本升级时,执行以下命令: - -```bash -conda update mindspore -c mindspore -c conda-forge -``` diff --git a/install/mindspore_cpu_mac_install_conda_en.md b/install/mindspore_cpu_mac_install_conda_en.md deleted file mode 100644 index a1495755e1..0000000000 --- a/install/mindspore_cpu_mac_install_conda_en.md +++ /dev/null @@ -1,90 +0,0 @@ -# Installing MindSpore CPU by Conda-macOS - - - -- [Installing MindSpore CPU by Conda-macOS](#installing-mindspore-cpu-by-conda-macos) - - [System Environment Information Confirmation](#system-environment-information-confirmation) - - [Creating and Accessing the Conda Virtual Environment](#creating-and-accessing-the-conda-virtual-environment) - - [Installing MindSpore](#installing-mindspore) - - [Installation Verification](#installation-verification) - - [Version Update](#version-update) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_install_conda_en.md) - -[Conda](https://docs.conda.io/en/latest/) is an open-source, cross-platform, language-agnostic package manager and environment management system. It allows users to easily install different versions of binary software packages and any required libraries appropriate for their computing platform. - -This document describes how to install MindSpore by Conda in a macOS system. - -## System Environment Information Confirmation - -- According to the system and chip situation in the table below, determine the appropriate Python and Conda versions, and for the macOS version and chip information, click on the Apple logo in the upper left corner of the desktop - > `About this mac`: - - |Chip|Architecture|macOS Version|Supported Python Version|Supported Conda Version| - |-|-|-|-|-| - |M1|ARM|11.3|Python 3.9-3.11|Mambaforge or Miniforge| - |Intel|x86_64|10.15/11.3|Python 3.9-3.11|Anaconda or Miniconda| - -- Ensure that the Conda version is compatible with the current system and chip. - - - If you prefer the complete capabilities provided by Conda, you may download [Anaconda3](https://repo.anaconda.com/archive/) or [Mambaforge](https://github.com/conda-forge/miniforge). - - If you want to save disk space or prefer customizing Conda installation package, you may download [Miniconda3](https://repo.anaconda.com/miniconda/) or [Miniforge](https://github.com/conda-forge/miniforge). - -## Creating and Accessing the Conda Virtual Environment - -Create a Conda virtual environment based on the Python version you want to use and go to the virtual environment. - -- If you want to use Python 3.9.11 (for 64-bit macOS 10.15 and 11.3): - - ```bash - conda create -c conda-forge -n mindspore_py39 -c conda-forge python=3.9.11 - conda activate mindspore_py39 - ``` - -## Installing MindSpore - -Ensure that you are in the Conda virtual environment and run the following command to install the latest MindSpore. To install other versions, please refer to the specified version number of [Version List](https://www.mindspore.cn/versions) after `conda install mindspore=`. - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. - -## Installation Verification - -Execute the following command: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -The outputs should be the same as: - -```text -MindSpore version: __version__ -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -It means MindSpore has been installed successfully. - -## Version Update - -When upgrading from MindSpore 1.x to MindSpore 2.x, you need to manually uninstall the old version first: - -```bash -conda remove mindspore-cpu -``` - -Then install MindSpore 2.x: - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -When upgrading from MindSpore 2.x: - -```bash -conda update mindspore -c mindspore -c conda-forge -``` diff --git a/install/mindspore_cpu_mac_install_nightly.md b/install/mindspore_cpu_mac_install_nightly.md deleted file mode 100644 index d74c982787..0000000000 --- a/install/mindspore_cpu_mac_install_nightly.md +++ /dev/null @@ -1,90 +0,0 @@ -# pip方式安装MindSpore CPU Nightly版本-macOS - - - -- [pip方式安装MindSpore CPU Nightly版本-macOS](#pip方式安装mindspore-cpu-nightly版本-macos) - - [确认系统环境信息](#确认系统环境信息) - - [创建并进入Conda虚拟环境](#创建并进入conda虚拟环境) - - [下载安装MindSpore](#下载安装mindspore) - - [验证是否成功安装](#验证是否成功安装) - - [升级MindSpore版本](#升级mindspore版本) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_mac_install_pip.md) - -MindSpore Nightly是包含当前最新功能与bugfix的预览版本,但是可能未经完整的测试与验证,希望体验最新功能或者问题修复的用户可以使用该版本。 - -[Conda](https://docs.conda.io/en/latest/)是一个开源跨平台语言无关的包管理与环境管理系统,允许用户方便地安装不同版本的二进制软件包,以及该计算平台需要的所有库。推荐在MacOS上通过Conda使用MindSpore Nightly。 - -本文档介绍如何在macOS系统上的Conda环境中,使用pip方式快速安装MindSpore Nightly。 - -## 确认系统环境信息 - -- 根据下表中的系统及芯片情况,确定合适的Python与Conda版本,其中macOS版本及芯片信息可点击桌面左上角苹果标志->`关于本机`获悉: - - |芯片|计算架构|macOS版本|支持Python版本|支持Conda版本| - |-|-|-|-|-| - |M1|ARM|11.3|Python 3.9-3.11|Mambaforge 或 Miniforge| - |Intel|x86_64|10.15/11.3|Python 3.9-3.11|Anaconda 或 MiniConda| - -- 确认安装与当前系统及芯片型号兼容的Conda版本。 - - - 如果您喜欢Conda提供的完整能力,可以选择下载[Anaconda3](https://repo.anaconda.com/archive/)或[Mambaforge](https://github.com/conda-forge/miniforge)。 - - 如果您需要节省磁盘空间,或者喜欢自定义安装Conda软件包,可以选择下载[Miniconda3](https://repo.anaconda.com/miniconda/)或[Miniforge](https://github.com/conda-forge/miniforge)。 - -## 创建并进入Conda虚拟环境 - -根据您希望使用的Python版本,创建对应的Conda虚拟环境,并进入虚拟环境。 - -- 如果您希望使用Python3.9.11版本(适配64-bit macOS 10.15或11.3): - - ```bash - conda create -c conda-forge -n mindspore_py39 -c conda-forge python=3.9.11 - conda activate mindspore_py39 - ``` - -## 下载安装MindSpore - -执行以下命令安装MindSpore: - -```bash -# install prerequisites -conda install scipy -c conda-forge - -pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple -``` - -其中: - -- 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 -- pip会自动安装当前最新版本的MindSpore Nightly,如果需要安装指定版本,请参照下方升级MindSpore版本相关指导,在下载时手动指定版本。 - -## 验证是否成功安装 - -执行以下命令: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -如果输出: - -```text -MindSpore version: 版本号 -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -说明MindSpore安装成功了。 - -## 升级MindSpore版本 - -当需要升级MindSpore版本时,可执行以下命令: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -其中: - -- 升级到rc版本时,需要手动指定`{version}`为rc版本号,例如1.5.0rc1;如果升级到正式版本,`=={version}`字段可以缺省。 diff --git a/install/mindspore_cpu_mac_install_nightly_en.md b/install/mindspore_cpu_mac_install_nightly_en.md deleted file mode 100644 index 67e384e727..0000000000 --- a/install/mindspore_cpu_mac_install_nightly_en.md +++ /dev/null @@ -1,90 +0,0 @@ -# Installing MindSpore CPU Nightly by pip-macOS - - - -- [Installing MindSpore CPU Nightly by pip-macOS](#installing-mindspore-cpu-nightly-by-pip-macos) - - [System Environment Information Confirmation](#system-environment-information-confirmation) - - [Creating and Accessing the Conda Virtual Environment](#creating-and-accessing-the-conda-virtual-environment) - - [Downloading and Installing MindSpore](#downloading-and-installing-mindspore) - - [Installation Verification](#installation-verification) - - [Version Update](#version-update) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_mac_install_pip_en.md) - -MindSpore Nightly is a preview version which includes latest features and bugfixes, not fully supported and tested. Install MindSpore Nightly version if you wish to try out the latest features or bug fixes can use this version. - -[Conda](https://docs.conda.io/en/latest/) is an open-source, cross-platform, language-agnostic package manager and environment management system. It allows users to easily install different versions of binary software packages and any required libraries appropriate for their computing platform. - -This document describes how to install MindSpore Nightly by pip in a macOS system with Conda installed. - -## System Environment Information Confirmation - -- According to the system and chip situation in the table below, determine the appropriate Python and Conda versions, and for the macOS version and chip information, click on the Apple logo in the upper left corner of the desktop - > `About this mac`: - - |Chip|Architecture|macOS Version|Supported Python Version|Supported Conda Version| - |-|-|-|-|-| - |M1|ARM|11.3|Python 3.9-3.11|Mambaforge or Miniforge| - |Intel|x86_64|10.15/11.3|Python 3.9-3.11|Anaconda or Miniconda| - -- Ensure that the Conda version is compatible with the current system and chip. - - - If you prefer the complete capabilities provided by Conda, you may download [Anaconda3](https://repo.anaconda.com/archive/) or [Mambaforge](https://github.com/conda-forge/miniforge). - - If you want to save disk space or prefer customizing Conda installation package, you may download [Miniconda3](https://repo.anaconda.com/miniconda/) or [Miniforge](https://github.com/conda-forge/miniforge). - -## Creating and Accessing the Conda Virtual Environment - -Create a Conda virtual environment based on the Python version you want to use and go to the virtual environment. - -- If you want to use Python 3.9.11 (for 64-bit macOS 10.15 and 11.3): - - ```bash - conda create -c conda-forge -n mindspore_py39 -c conda-forge python=3.9.11 - conda activate mindspore_py39 - ``` - -## Downloading and Installing MindSpore - -Execute the following command to install MindSpore: - -```bash -# install prerequisites -conda install scipy -c conda-forge - -pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple -``` - -Of which, - -- When the network is connected, dependencies are automatically downloaded during .whl package installation. (For details about the dependencies, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependencies by yourself. -- pip will be installing the latest version of MindSpore Nightly automatically. If you wish to specify the version to be installed, please refer to the instruction below regarding to version update, and specify version manually. - -## Installation Verification - -Execute the following command: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -The outputs should be the same as: - -```text -MindSpore version: __version__ -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -It means MindSpore has been installed successfully. - -## Version Update - -Use the following command if you need to update the MindSpore version: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -Of which, - -- When updating to a release candidate (RC) version, set `{version}` to the RC version number, for example, 2.0.0.rc1. When updating to a stable release, you can remove `=={version}`. diff --git a/install/mindspore_cpu_mac_install_pip.md b/install/mindspore_cpu_mac_install_pip.md index 47569b7326..48beb06bed 100644 --- a/install/mindspore_cpu_mac_install_pip.md +++ b/install/mindspore_cpu_mac_install_pip.md @@ -44,10 +44,10 @@ ## 安装MindSpore -首先参考[版本列表](https://www.mindspore.cn/versions)选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.6.0版本为例,执行以下命令。 +首先参考[版本列表](https://www.mindspore.cn/versions)选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.7.0rc1版本为例,执行以下命令。 ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` 然后根据系统架构及Python版本,执行以下命令安装MindSpore。 @@ -57,17 +57,17 @@ export MS_VERSION=2.6.0 conda install scipy -c conda-forge # x86_64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_cpu_mac_install_pip_en.md b/install/mindspore_cpu_mac_install_pip_en.md index 361a985e9a..130184785c 100644 --- a/install/mindspore_cpu_mac_install_pip_en.md +++ b/install/mindspore_cpu_mac_install_pip_en.md @@ -44,10 +44,10 @@ Create a Conda virtual environment based on the Python version you want to use a ## Installing MindSpore -First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.6.0 as an example, execute the following commands. +First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.7.0rc1 as an example, execute the following commands. ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` Then run the following commands to install MindSpore according to the system architecture and Python version. @@ -57,17 +57,17 @@ Then run the following commands to install MindSpore according to the system arc conda install scipy -c conda-forge # x86_64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # x86_64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_10_15_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp39-cp39-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp310-cp310-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # aarch64 + Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/cpu/aarch64/mindspore-${MS_VERSION/-/}-cp311-cp311-macosx_11_0_arm64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependencies of MindSpore are automatically downloaded during the .whl package installation. For details about dependencies, see required_package in the [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py). In other cases, install the dependencies by yourself. diff --git a/install/mindspore_cpu_mac_install_source.md b/install/mindspore_cpu_mac_install_source.md index 255806c2a7..fa163675ed 100644 --- a/install/mindspore_cpu_mac_install_source.md +++ b/install/mindspore_cpu_mac_install_source.md @@ -82,7 +82,7 @@ bash build.sh -e cpu -S on -j4 # -j 为编译时线程配置,如果CPU性能 # install prerequisites conda install scipy -c conda-forge -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` ## 验证安装是否成功 diff --git a/install/mindspore_cpu_mac_install_source_en.md b/install/mindspore_cpu_mac_install_source_en.md index 7611e463d5..34662fcfb1 100644 --- a/install/mindspore_cpu_mac_install_source_en.md +++ b/install/mindspore_cpu_mac_install_source_en.md @@ -82,7 +82,7 @@ bash build.sh -e cpu -S on -j4 # -j is a thread configuration when compiled, a # install prerequisites conda install scipy -c conda-forge -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` ## Installation Verification diff --git a/install/mindspore_cpu_win_install_conda.md b/install/mindspore_cpu_win_install_conda.md deleted file mode 100644 index a7340c89e2..0000000000 --- a/install/mindspore_cpu_win_install_conda.md +++ /dev/null @@ -1,85 +0,0 @@ -# Conda方式安装MindSpore CPU版本-Windows - - - -- [Conda方式安装MindSpore CPU版本-Windows](#conda方式安装mindspore-cpu版本-windows) - - [确认系统环境信息](#确认系统环境信息) - - [创建并进入Conda虚拟环境](#创建并进入conda虚拟环境) - - [安装MindSpore](#安装mindspore) - - [验证是否成功安装](#验证是否成功安装) - - [升级MindSpore版本](#升级mindspore版本) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_win_install_conda.md) - -[Conda](https://docs.conda.io/en/latest/)是一个开源跨平台语言无关的包管理与环境管理系统,允许用户方便地安装不同版本的二进制软件包,以及该计算平台需要的所有库。 - -本文档介绍如何在CPU环境的Windows系统上,使用Conda方式快速安装MindSpore。 - -## 确认系统环境信息 - -- 确认安装Windows 10是x86架构64位操作系统。 -- 确认安装与当前系统兼容的Conda版本。 - - - 如果您喜欢Conda提供的完整能力,可以选择下载[Anaconda3](https://repo.anaconda.com/archive/)。 - - 如果您需要节省磁盘空间,或者喜欢自定义安装Conda软件包,可以选择下载[Miniconda3](https://repo.anaconda.com/miniconda/)。 - -## 创建并进入Conda虚拟环境 - -在Windows上使用Anaconda,请通过`开始 | Anaconda3 | Anaconda Promt`打开Anaconda命令行。 - -根据您希望使用的Python版本,创建对应的Conda虚拟环境,并进入虚拟环境。 -如果您希望使用Python3.9.11版本: - -```bash -conda create -c conda-forge -n mindspore_py39 -c conda-forge python=3.9.11 -conda activate mindspore_py39 -``` - -## 安装MindSpore - -确认您处于Conda虚拟环境中,并执行以下命令安装最新版本的MindSpore。如需安装其他版本,可参考[版本列表](https://www.mindspore.cn/versions)在`conda install mindspore=`后指定版本号。 - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -在联网状态下,安装Conda安装包时会自动下载MindSpore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 - -## 验证是否成功安装 - -执行以下命令: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -如果输出: - -```text -MindSpore version: 版本号 -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -说明MindSpore安装成功了。 - -## 升级MindSpore版本 - -从MindSpore 2.4.x及以下版本升级到MindSpore 2.5.x及以上版本时,需要先手动卸载旧版本: - -```bash -conda remove mindspore-cpu -``` - -然后安装新版本: - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -从MindSpore 2.5.x版本升级时,执行以下命令: - -```bash -conda update mindspore -c mindspore -c conda-forge -``` diff --git a/install/mindspore_cpu_win_install_conda_en.md b/install/mindspore_cpu_win_install_conda_en.md deleted file mode 100644 index 5863778e46..0000000000 --- a/install/mindspore_cpu_win_install_conda_en.md +++ /dev/null @@ -1,85 +0,0 @@ -# Installing MindSpore CPU by Conda-Windows - - - -- [Installing MindSpore CPU by Conda-Windows](#installing-mindspore-cpu-by-conda-windows) - - [System Environment Information Confirmation](#system-environment-information-confirmation) - - [Creating and Accessing the Conda Virtual Environment](#creating-and-accessing-the-conda-virtual-environment) - - [Installing MindSpore](#installing-mindspore) - - [Installation Verification](#installation-verification) - - [Version Update](#version-update) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_win_install_conda_en.md) - -[Conda](https://docs.conda.io/en/latest/) is an open-source, cross-platform, language-agnostic package manager and environment management system. It allows users to easily install different versions of binary software packages and any required libraries appropriate for their computing platform. - -The following describes how to install MindSpore by Conda on Windows in the CPU environment. - -## System Environment Information Confirmation - -- Ensure that Windows 10 is installed with the x86 architecture 64-bit operating system. -- Ensure that the Conda version that is compatible with the current system is installed. - - - If you prefer the complete capabilities provided by Conda, you can choose to download [Anaconda3](https://repo.anaconda.com/archive/). - - If you want to save disk space or prefer customizing Conda installation package, you can choose to download [Miniconda3](https://repo.anaconda.com/miniconda/). - -## Creating and Accessing the Conda Virtual Environment - -To run Anaconda on Windows, you should open an Anaconda prompt via `Start | Anaconda3 | Anaconda Promt`. - -Create a Conda virtual environment based on the Python version you want to use and go to the virtual environment. -If you want to use Python 3.9.11: - -```bash -conda create -c conda-forge -n mindspore_py39 -c conda-forge python=3.9.11 -conda activate mindspore_py39 -``` - -## Installing MindSpore - -Ensure that you are in the Conda virtual environment and run the following command to install the latest MindSpore. To install other versions, please refer to the specified version number of [Version List](https://www.mindspore.cn/versions) after `conda install mindspore=`. - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. - -## Installation Verification - -Execute the following command: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -The outputs should be the same as: - -```text -MindSpore version: __version__ -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -It means MindSpore has been installed successfully. - -## Version Update - -When upgrading from MindSpore 2.4.x and below to MindSpore 2.5.x and above, you need to manually uninstall the old version first: - -```bash -conda remove mindspore-cpu -``` - -Then install new package: - -```bash -conda install mindspore -c mindspore -c conda-forge -``` - -When upgrading from MindSpore 2.5.x: - -```bash -conda update mindspore -c mindspore -c conda-forge -``` diff --git a/install/mindspore_cpu_win_install_nightly.md b/install/mindspore_cpu_win_install_nightly.md deleted file mode 100644 index 5928f5201e..0000000000 --- a/install/mindspore_cpu_win_install_nightly.md +++ /dev/null @@ -1,64 +0,0 @@ -# pip方式安装MindSpore CPU Nightly版本-Windows - - - -- [pip方式安装MindSpore CPU Nightly版本-Windows](#pip方式安装mindspore-cpu-nightly版本-windows) - - [确认系统环境信息](#确认系统环境信息) - - [下载安装MindSpore](#下载安装mindspore) - - [验证是否成功安装](#验证是否成功安装) - - [升级MindSpore版本](#升级mindspore版本) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_win_install_nightly.md) - -MindSpore Nightly是包含当前最新功能与bugfix的预览版本,但是可能未经完整的测试与验证,希望体验最新功能或者问题修复的用户可以使用该版本。 - -本文档介绍如何在CPU环境的Windows系统上,使用pip方式快速安装MindSpore Nightly。 - -## 确认系统环境信息 - -- 确认安装Windows 10是x86架构64位操作系统。 -- 确认安装Python(>=3.9.0)。可以从[Python官网](https://www.python.org/downloads/windows/)或者[华为云](https://repo.huaweicloud.com/python/)选择合适的版本进行安装。 - -## 下载安装MindSpore - -执行以下命令安装MindSpore: - -```bash -pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple -``` - -其中: - -- 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 -- pip会自动安装当前最新版本的MindSpore Nightly,如果需要安装指定版本,请参照下方升级MindSpore版本相关指导,在下载时手动指定版本。 - -## 验证是否成功安装 - -执行以下命令: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -如果输出: - -```text -MindSpore version: 版本号 -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -说明MindSpore安装成功了。 - -## 升级MindSpore版本 - -当需要升级MindSpore版本时,可执行以下命令: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -其中: - -- 升级到rc版本时,需要手动指定`{version}`为rc版本号,例如1.6.0rc1.dev20211125;如果希望自动升级到最新版本,`=={version}`字段可以缺省。 diff --git a/install/mindspore_cpu_win_install_nightly_en.md b/install/mindspore_cpu_win_install_nightly_en.md deleted file mode 100644 index 1c891fd463..0000000000 --- a/install/mindspore_cpu_win_install_nightly_en.md +++ /dev/null @@ -1,64 +0,0 @@ -# Installing MindSpore CPU Nightly by pip-Windows - - - -- [Installing MindSpore CPU Nightly by pip-Windows](#installing-mindspore-cpu-nightly-by-pip-windows) - - [System Environment Information Confirmation](#system-environment-information-confirmation) - - [Installing MindSpore](#installing-mindspore) - - [Installation Verification](#installation-verification) - - [Version Update](#version-update) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_cpu_win_install_nightly_en.md) - -MindSpore Nightly is a preview version which includes latest features and bugfixes, not fully supported and tested. Install MindSpore Nightly version if you wish to try out the latest changes on MindSpore. - -This document describes how to install MindSpore Nightly by pip on Linux in a CPU environment. - -## System Environment Information Confirmation - -- Ensure that Windows 10 is installed with the x86 architecture 64-bit operating system. -- Ensure that you have Python(>=3.9.0) installed. If not installed, follow the links to [Python official website](https://www.python.org/downloads/windows/) or [Huawei Cloud](https://repo.huaweicloud.com/python/) to download and install Python. - -## Installing MindSpore - -Execute the following command to install MindSpore: - -```bash -pip install mindspore-dev -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 the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. -- pip will be installing the latest version of MindSpore Nightly automatically. If you wish to specify the version to be installed, please refer to the instruction below regarding to version update, and specify version manually. - -## Installation Verification - -Execute the following command: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()" -``` - -The outputs should be the same as: - -```text -MindSpore version: __version__ -The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully! -``` - -It means MindSpore has been installed successfully. - -## Version Update - -Use the following command if you need to update the MindSpore version: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -Of which, - -- When updating to a release candidate (RC) version, set `{version}` to the RC version number, for example, 2.0.0.rc1. When updating to a stable release, you can remove `=={version}`. diff --git a/install/mindspore_cpu_win_install_pip.md b/install/mindspore_cpu_win_install_pip.md index 444ac5e529..65239bc7fc 100644 --- a/install/mindspore_cpu_win_install_pip.md +++ b/install/mindspore_cpu_win_install_pip.md @@ -21,21 +21,21 @@ ## 安装MindSpore -首先参考[版本列表](https://www.mindspore.cn/versions)选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.6.0版本为例,执行以下命令。 +首先参考[版本列表](https://www.mindspore.cn/versions)选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.7.0rc1版本为例,执行以下命令。 ```bash -set MS_VERSION=2.6.0 +set MS_VERSION=2.7.0rc1 ``` 然后根据Python版本执行以下命令安装MindSpore。 ```bash # Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp39-cp39-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp39-cp39-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp310-cp310-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp310-cp310-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp311-cp311-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp311-cp311-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_cpu_win_install_pip_en.md b/install/mindspore_cpu_win_install_pip_en.md index e4c7f800bc..29160e4662 100644 --- a/install/mindspore_cpu_win_install_pip_en.md +++ b/install/mindspore_cpu_win_install_pip_en.md @@ -21,21 +21,21 @@ This document describes how to install MindSpore by pip on Windows in a CPU envi ## Installing MindSpore -First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.6.0 as an example, execute the following commands. +First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.7.0rc1 as an example, execute the following commands. ```bash -set MS_VERSION=2.6.0 +set MS_VERSION=2.7.0rc1 ``` Then run the following commands to install MindSpore according to Python version. ```bash # Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp39-cp39-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp39-cp39-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp310-cp310-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp310-cp310-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp311-cp311-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/%MS_VERSION%/MindSpore/cpu/x86_64/mindspore-%MS_VERSION:-=%-cp311-cp311-win_amd64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. diff --git a/install/mindspore_cpu_win_install_source.md b/install/mindspore_cpu_win_install_source.md index 50769a7722..cdc0bb41be 100644 --- a/install/mindspore_cpu_win_install_source.md +++ b/install/mindspore_cpu_win_install_source.md @@ -45,7 +45,7 @@ call build.bat ms_vs_cpu ## 安装MindSpore ```bash -for %x in (output\mindspore*.whl) do pip install %x -i https://pypi.tuna.tsinghua.edu.cn/simple +for %x in (output\mindspore*.whl) do pip install %x -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_cpu_win_install_source_en.md b/install/mindspore_cpu_win_install_source_en.md index dcf1e24bef..f99ef0f2a3 100644 --- a/install/mindspore_cpu_win_install_source_en.md +++ b/install/mindspore_cpu_win_install_source_en.md @@ -45,7 +45,7 @@ call build.bat ms_vs_cpu ## Installing MindSpore ```bash -for %x in (output\mindspore*.whl) do pip install %x -i https://pypi.tuna.tsinghua.edu.cn/simple +for %x in (output\mindspore*.whl) do pip install %x -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. diff --git a/install/mindspore_gpu_install_nightly.md b/install/mindspore_gpu_install_nightly.md deleted file mode 100644 index 674f97f72d..0000000000 --- a/install/mindspore_gpu_install_nightly.md +++ /dev/null @@ -1,270 +0,0 @@ -# pip方式安装MindSpore GPU Nightly版本 - - - -- [pip方式安装MindSpore GPU Nightly版本](#pip方式安装mindspore-gpu-nightly版本) - - [安装MindSpore与依赖软件](#安装mindspore与依赖软件) - - [安装CUDA](#安装cuda) - - [安装cuDNN](#安装cudnn) - - [安装Python](#安装python) - - [安装GCC](#安装gcc) - - [安装TensorRT-可选](#安装tensorrt-可选) - - [下载安装MindSpore](#下载安装mindspore) - - [验证是否成功安装](#验证是否成功安装) - - [升级MindSpore版本](#升级mindspore版本) - - - -[![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_gpu_install_pip.md) - -MindSpore Nightly是包含当前最新功能与bugfix的预览版本,但是可能未经完整的测试与验证,希望体验最新功能或者问题修复的用户可以使用该版本。 - -本文档介绍如何在GPU环境的Linux系统上,使用pip方式快速安装MindSpore Nightly。 - -在确认系统环境信息的过程中,如需了解如何安装第三方依赖软件,可以参考社区提供的实践——[在Linux上体验源码编译安装MindSpore GPU版本](https://www.mindspore.cn/news/newschildren?id=401)中的第三方依赖软件安装相关部分,在此感谢社区成员[飞翔的企鹅](https://gitee.com/zhang_yi2020)的分享。 - -## 安装MindSpore与依赖软件 - -下表列出了编译安装MindSpore GPU所需的系统环境和第三方依赖。 - -| 软件名称 | 版本 | 作用 | -| ----------------------------- | ---------------- | ------------------------------------------------------------ | -| Ubuntu | 18.04 | 编译和运行MindSpore的操作系统 | -| [CUDA](#安装cuda) | 11.1或11.6 | MindSpore GPU使用的并行计算架构 | -| [cuDNN](#安装cudnn) | 7.6.x或8.0.x或8.5.x| MindSpore GPU使用的深度神经网络加速库 | -| [Python](#安装python) | 3.9-3.11 | MindSpore的使用依赖Python环境 | -| [GCC](#安装gcc) | 7.3.0-9.4.0 | 用于编译MindSpore的C++编译器 | -| [TensorRT](#安装tensorrt-可选) | 7.2.2或8.4 | MindSpore使用的高性能深度学习推理SDK(可选,Serving推理需要) | - -下面给出第三方依赖的安装方法。 - -### 安装CUDA - -MindSpore GPU支持CUDA 11.1和CUDA 11.6。NVIDIA官方给出了多种安装方式和安装指导,详情可查看[CUDA下载页面](https://developer.nvidia.com/cuda-toolkit-archive)和[CUDA安装指南](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)。 -下面仅给出Linux系统使用runfile方式安装的指导。 - -在安装CUDA前需要先安装相关依赖,执行以下命令。 - -```bash -sudo apt-get install linux-headers-$(uname -r) gcc-7 -``` - -CUDA 11.1要求最低显卡驱动版本为450.80.02;CUDA 11.6要求最低显卡驱动为510.39.01。可以执行`nvidia-smi`命令确认显卡驱动版本。如果驱动版本不满足要求,CUDA安装过程中可以选择同时安装驱动,安装驱动后需要重启系统。 - -使用以下命令安装CUDA 11.6(推荐)。 - -```bash -wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda_11.6.0_510.39.01_linux.run -sudo sh cuda_11.6.0_510.39.01_linux.run -echo -e "export PATH=/usr/local/cuda-11.6/bin:\$PATH" >> ~/.bashrc -echo -e "export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:\$LD_LIBRARY_PATH" >> ~/.bashrc -source ~/.bashrc -``` - -或者使用以下命令安装CUDA 11.1。 - -```bash -wget https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run -sudo sh cuda_11.1.1_455.32.00_linux.run -echo -e "export PATH=/usr/local/cuda-11.1/bin:\$PATH" >> ~/.bashrc -echo -e "export LD_LIBRARY_PATH=/usr/local/cuda-11.1/lib64:\$LD_LIBRARY_PATH" >> ~/.bashrc -source ~/.bashrc -``` - -当默认路径`/usr/local/cuda`存在安装包的时候,LD_LIBRARY_PATH环境变量不起作用;原因是MindSpore采用DT_RPATH方式支持无环境变量启动,减少用户设置;DT_RPATH优先级比LD_LIBRARY_PATH环境变量高。 - -### 安装cuDNN - -完成CUDA的安装后,在[cuDNN页面](https://developer.nvidia.com/cudnn)登录并下载对应的cuDNN安装包。如果之前安装了CUDA 11.1,下载配套CUDA 11.1的cuDNN v8.0.x;如果之前安装了CUDA 11.6,下载配套CUDA 11.6的cuDNN v8.5.x。注意下载后缀名为tgz的压缩包。假设下载的cuDNN包名为`cudnn.tgz`,安装的CUDA版本为11.6,执行以下命令安装cuDNN。 - -```bash -tar -zxvf cudnn.tgz -sudo cp cuda/include/cudnn*.h /usr/local/cuda-11.6/include -sudo cp cuda/lib64/libcudnn* /usr/local/cuda-11.6/lib64 -sudo chmod a+r /usr/local/cuda-11.6/include/cudnn*.h /usr/local/cuda-11.6/lib64/libcudnn* -``` - -如果之前安装了其他CUDA版本,或者CUDA安装路径不同,只需替换以上命令中的`/usr/local/cuda-11.6`为当前安装的CUDA路径。 - -### 安装Python - -[Python](https://www.python.org/)可通过多种方式进行安装。 - -- 通过Conda安装Python。 - - 安装Miniconda: - - ```bash - cd /tmp - curl -O https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py37_4.10.3-Linux-$(arch).sh - bash Miniconda3-py37_4.10.3-Linux-$(arch).sh -b - cd - - . ~/miniconda3/etc/profile.d/conda.sh - conda init bash - ``` - - 安装完成后,可以为Conda设置清华源加速下载,参考[此处](https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/)。 - - 创建虚拟环境,以Python 3.9.11为例: - - ```bash - conda create -n mindspore_py39 python=3.9.11 -y - conda activate mindspore_py39 - ``` - -- 通过APT安装Python,命令如下。 - - ```bash - sudo apt-get update - sudo apt-get install software-properties-common -y - sudo add-apt-repository ppa:deadsnakes/ppa -y - sudo apt-get install python3.9 python3.9-dev python3.9-distutils python3-pip -y - # 将新安装的Python设为默认 - sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 100 - # 安装pip - python -m pip install pip -i https://repo.huaweicloud.com/repository/pypi/simple - sudo update-alternatives --install /usr/bin/pip pip ~/.local/bin/pip3.9 100 - pip config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple - ``` - - 若要安装其他Python版本,只需更改命令中的`3.9`。 - -可以通过以下命令查看Python版本。 - -```bash -python --version -``` - -### 安装GCC - -可以通过以下命令安装GCC。 - -```bash -sudo apt-get install gcc-7 -y -``` - -如果要安装更高版本的GCC,使用以下命令安装GCC 8。 - -```bash -sudo apt-get install gcc-8 -y -``` - -或者安装GCC 9。 - -```bash -sudo apt-get install software-properties-common -y -sudo add-apt-repository ppa:ubuntu-toolchain-r/test -sudo apt-get update -sudo apt-get install gcc-9 -y -``` - -### 安装TensorRT-可选 - -完成CUDA和cuDNN的安装后,在[TensorRT下载页面](https://developer.nvidia.com/nvidia-tensorrt-8x-download)下载配套CUDA 11.6的TensorRT 8.4,注意选择下载TAR格式的安装包。假设下载的文件名为`TensorRT-8.4.1.5.Ubuntu-18.04.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz`。使用以下命令安装TensorRT。 - -```bash -tar xzf TensorRT-8.4.1.5.Ubuntu-18.04.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz -cd TensorRT-8.4.1.5 -echo -e "export TENSORRT_HOME=$PWD" >> ~/.bashrc -echo -e "export LD_LIBRARY_PATH=\$TENSORRT_HOME/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc -source ~/.bashrc -cd - -``` - -## 下载安装MindSpore - -```bash -pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple -``` - -其中: - -- MindSpore Nightly支持CUDA11.1、11.6的任意版本,启动时会根据当前环境中安装的CUDA版本自动适配。 -- 在联网状态下,安装whl包时会自动下载mindspore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 -- pip会自动安装当前最新版本的MindSpore Nightly,如果需要安装指定版本,请参照下方升级MindSpore版本相关指导,在下载时手动指定版本。 - -## 验证是否成功安装 - -运行MindSpore GPU版本前,请确保nvcc的安装路径已经添加到`PATH`与`LD_LIBRARY_PATH`环境变量中,如果没有添加,以安装在默认路径的CUDA11为例,可以执行如下操作: - -```bash -export PATH=/usr/local/cuda-11.6/bin:$PATH -export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH -export CUDA_HOME=/usr/local/cuda-11.6 -``` - -如果之前安装了其他CUDA版本,或者CUDA安装路径不同,只需替换以上命令中的`/usr/local/cuda-11.6`为当前安装的CUDA路径。 - -**方法一:** - -执行以下命令: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='GPU');mindspore.run_check()" -``` - -如果输出: - -```text -MindSpore version: 版本号 -The result of multiplication calculation is correct, MindSpore has been installed on platform [GPU] successfully! -``` - -说明MindSpore安装成功了。 - -**方法二:** - -执行以下代码: - -```python -import numpy as np -import mindspore as ms -import mindspore.ops as ops - -ms.set_device(device_target="GPU") -x = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -y = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -print(ops.add(x, y)) -``` - -如果输出: - -```text -[[[[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]]]] -``` - -说明MindSpore安装成功了。 - -## 升级MindSpore版本 - -从MindSpore 1.x升级到MindSpore 2.x版本时,需要先手动卸载旧版本: - -```bash -pip uninstall mindspore-gpu-dev -``` - -然后安装新版本: - -```bash -pip install mindspore-dev=={version} -``` - -从MindSpore 2.x版本升级时,执行以下命令: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -其中: - -- 升级到rc版本时,需要手动指定`{version}`为rc版本号,例如1.6.0rc1.dev20211125;如果希望自动升级到最新版本,`=={version}`字段可以缺省。 diff --git a/install/mindspore_gpu_install_nightly_en.md b/install/mindspore_gpu_install_nightly_en.md deleted file mode 100644 index 3cc8a02d9f..0000000000 --- a/install/mindspore_gpu_install_nightly_en.md +++ /dev/null @@ -1,270 +0,0 @@ -# Installing MindSpore GPU Nightly by pip - - - -- [Installing MindSpore GPU Nightly by pip](#installing-mindspore-gpu-nightly-by-pip) - - [Installing MindSpore and dependencies](#installing-mindspore-and-dependencies) - - [Installing CUDA](#installing-cuda) - - [Installing cuDNN](#installing-cudnn) - - [Installing Python](#installing-python) - - [Installing GCC](#installing-gcc) - - [Installing TensorRT-optional](#installing-tensorrt-optional) - - [Installing MindSpore](#installing-mindspore) - - [Installation Verification](#installation-verification) - - [Version Update](#version-update) - - - -[![View Source On Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/install/mindspore_gpu_install_pip_en.md) - -MindSpore Nightly is a preview version which includes latest features and bugfixes, not fully supported and tested. Install MindSpore Nightly version if you wish to try out the latest changes on MindSpore. - -This document describes how to install MindSpore Nightly by pip on Linux in a GPU environment. - -For details about how to install third-party dependency software when confirming the system environment information, see the third-party dependency software installation section in the [Experience source code compilation and install the MindSpore GPU version on Linux](https://www.mindspore.cn/news/newschildren?id=401) provided by the community. Thanks to the community member [Flying penguin](https://gitee.com/zhang_yi2020) for sharing. - -## Installing MindSpore and dependencies - -The following table lists the system environment and third-party dependencies required to install MindSpore. - -| software | version | description | -| ----------------------------------------- | -------------- | ------------------------------------------------------------ | -| Ubuntu | 18.04 | OS for compiling and running MindSpore | -| [CUDA](#installing-cuda) | 11.1 or 11.6 | parallel computing architecture for MindSpore GPU | -| [cuDNN](#installing-cudnn) | 7.6.x or 8.0.x or 8.5.x | deep neural network acceleration library used by MindSpore GPU | -| [Python](#installing-python) | 3.9-3.11 | Python environment that MindSpore depends on | -| [GCC](#installing-gcc) | 7.3.0-9.4.0 | C++ compiler for compiling MindSpore | -| [TensorRT](#installing-tensorrt-optional) | 7.2.2 or 8.4 | high performance deep learning inference SDK used by MindSpore (optional, required for serving inference) | - -The following describes how to install the third-party dependencies. - -### Installing CUDA - -MindSpore GPU supports CUDA 11.1 and CUDA 11.6. NVIDIA officially shows a variety of installation methods. For details, please refer to [CUDA download page](https://developer.nvidia.com/cuda-toolkit-archive) and [CUDA installation guide](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html). -The following only shows instructions for installing by runfile on Linux systems. - -Before installing CUDA, you need to run the following commands to install related dependencies. - -```bash -sudo apt-get install linux-headers-$(uname -r) gcc-7 -``` - -The minimum required GPU driver version of CUDA 11.1 is 450.80.02. The minimum required GPU driver version of CUDA 11.6 is 510.39.01. You may run `nvidia-smi` command to confirm the GPU driver version. If the driver version does not meet the requirements, you should choose to install the driver during the CUDA installation. After installing the driver, you need to reboot your system. - -Run the following command to install CUDA 11.6 (recommended). - -```bash -wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda_11.6.0_510.39.01_linux.run -sudo sh cuda_11.6.0_510.39.01_linux.run -echo -e "export PATH=/usr/local/cuda-11.6/bin:\$PATH" >> ~/.bashrc -echo -e "export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:\$LD_LIBRARY_PATH" >> ~/.bashrc -source ~/.bashrc -``` - -Or install CUDA 11.1 with the following command. - -```bash -wget https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run -sudo sh cuda_11.1.1_455.32.00_linux.run -echo -e "export PATH=/usr/local/cuda-11.1/bin:\$PATH" >> ~/.bashrc -echo -e "export LD_LIBRARY_PATH=/usr/local/cuda-11.1/lib64:\$LD_LIBRARY_PATH" >> ~/.bashrc -source ~/.bashrc -``` - -When the default path `/usr/local/cuda` has an installation package, the LD_LIBRARY_PATH environment variable does not work. The reason is that MindSpore uses DT_RPATH to support startup without environment variables, reducing user settings. DT_RPATH has a higher priority than the LD_LIBRARY_PATH environment variable. - -### Installing cuDNN - -After completing the installation of CUDA, Log in and download the corresponding cuDNN installation package from [cuDNN page](https://developer.nvidia.com/cudnn). If CUDA 11.1 was previously installed, download cuDNN v8.0.x for CUDA 11.1. If CUDA 11.6 was previously installed, download cuDNN v8.5.x for CUDA 11.6. Note that download the tgz compressed file. Assuming that the downloaded cuDNN package file is named `cudnn.tgz` and the installed CUDA version is 11.6, execute the following command to install cuDNN. - -```bash -tar -zxvf cudnn.tgz -sudo cp cuda/include/cudnn*.h /usr/local/cuda-11.6/include -sudo cp cuda/lib64/libcudnn* /usr/local/cuda-11.6/lib64 -sudo chmod a+r /usr/local/cuda-11.6/include/cudnn*.h /usr/local/cuda-11.6/lib64/libcudnn* -``` - -If a different version of CUDA have been installed or the CUDA installation path is different, just replace `/usr/local/cuda-11.6` in the above command with the currently installed CUDA path. - -### Installing Python - -[Python](https://www.python.org/) can be installed in multiple ways. - -- Install Python with Conda. - - Install Miniconda: - - ```bash - cd /tmp - curl -O https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py37_4.10.3-Linux-$(arch).sh - bash Miniconda3-py37_4.10.3-Linux-$(arch).sh -b - cd - - . ~/miniconda3/etc/profile.d/conda.sh - conda init bash - ``` - - After the installation is complete, you can set up Tsinghua source acceleration download for Conda, and see [here](https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/). - - Create a virtual environment, taking Python 3.9.11 as an example: - - ```bash - conda create -n mindspore_py39 python=3.9.11 -y - conda activate mindspore_py39 - ``` - -- Or install Python via APT with the following command. - - ```bash - sudo apt-get update - sudo apt-get install software-properties-common -y - sudo add-apt-repository ppa:deadsnakes/ppa -y - sudo apt-get install python3.9 python3.9-dev python3.9-distutils python3-pip -y - # set new installed Python as default - sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 100 - # install pip - python -m pip install pip -i https://repo.huaweicloud.com/repository/pypi/simple - sudo update-alternatives --install /usr/bin/pip pip ~/.local/bin/pip3.9 100 - pip config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple - ``` - - To install other Python versions, just change `3.9` in the command. - -Run the following command to check the Python version. - -```bash -python --version -``` - -### Installing GCC - -Run the following commands to install GCC. - -```bash -sudo apt-get install gcc-7 -y -``` - -To install a later version of GCC, run the following command to install GCC 8. - -```bash -sudo apt-get install gcc-8 -y -``` - -Or install GCC 9. - -```bash -sudo apt-get install software-properties-common -y -sudo add-apt-repository ppa:ubuntu-toolchain-r/test -sudo apt-get update -sudo apt-get install gcc-9 -y -``` - -### Installing TensorRT-optional - -After completing the installation of CUDA and cuDNN, download TensorRT 8.4 for CUDA 11.1 from [TensorRT download page](https://developer.nvidia.com/nvidia-tensorrt-7x-download), and note to download installation package in TAR format. Suppose the downloaded file is named `TensorRT-8.4.1.5.Ubuntu-18.04.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz`, install TensorRT with the following command. - -```bash -tar xzf TensorRT-8.4.1.5.Ubuntu-18.04.x86_64-gnu.cuda-11.1.cudnn8.0.tar.gz -cd TensorRT-8.4.1.5 -echo -e "export TENSORRT_HOME=$PWD" >> ~/.bashrc -echo -e "export LD_LIBRARY_PATH=\$TENSORRT_HOME/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc -source ~/.bashrc -cd - -``` - -## Installing MindSpore - -```bash -pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple -``` - -Of which, - -- MindSpore Nightly supports CUDA 11.1 and 11.6, it will configure automatically according to the version of CUDA installed in your environment. -- When the network is connected, dependency items are automatically downloaded during .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. -- pip will be installing the latest version of MindSpore GPU Nightly automatically. If you wish to specify the version to be installed, please refer to the instruction below regarding to version update, and specify version manually. - -## Installation Verification - -Before running MindSpore GPU version, please make sure that installation path of nvcc has been added to `PATH` and `LD_LIBRARY_PATH` environment variabels. If you have not done so, please follow the example below, based on CUDA11 installed in default location: - -```bash -export PATH=/usr/local/cuda-11.6/bin:$PATH -export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH -export CUDA_HOME=/usr/local/cuda-11.6 -``` - -If a different version of CUDA have been installed or the CUDA installation path is different, replace `/usr/local/cuda-11.6` in the above command with the currently installed CUDA path. - -**Method 1:** - -Execute the following command: - -```bash -python -c "import mindspore;mindspore.set_device(device_target='GPU');mindspore.run_check()" -``` - -The outputs should be the same as: - -```text -MindSpore version: __version__ -The result of multiplication calculation is correct, MindSpore has been installed on platform [GPU] successfully! -``` - -It means MindSpore has been installed successfully. - -**Method 2:** - -Execute the following command: - -```python -import numpy as np -import mindspore as ms -import mindspore.ops as ops - -ms.set_device(device_target="GPU") -x = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -y = ms.Tensor(np.ones([1,3,3,4]).astype(np.float32)) -print(ops.add(x, y)) -``` - -- The outputs should be the same as: - -```text -[[[[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]] - - [[2. 2. 2. 2.] - [2. 2. 2. 2.] - [2. 2. 2. 2.]]]] -``` - -It means MindSpore has been installed successfully. - -## Version Update - -When upgrading from MindSpore 1.x to MindSpore 2.x, you need to manually uninstall the old version first: - -```bash -pip uninstall mindspore-gpu-dev -``` - -Then install MindSpore 2.x: - -```bash -pip install mindspore-dev=={version} -``` - -When upgrading from MindSpore 2.x: - -```bash -pip install --upgrade mindspore-dev=={version} -``` - -Of which, - -- When updating to a release candidate (RC) version, set `{version}` to the RC version number, for example, 2.0.0.rc1. When updating to a stable release, you can remove `=={version}`. diff --git a/install/mindspore_gpu_install_pip.md b/install/mindspore_gpu_install_pip.md index a4f9669541..37df234df3 100644 --- a/install/mindspore_gpu_install_pip.md +++ b/install/mindspore_gpu_install_pip.md @@ -169,21 +169,21 @@ cd - ### 安装MindSpore -首先参考[版本列表](https://www.mindspore.cn/versions)选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.6.0版本为例,执行以下命令。 +首先参考[版本列表](https://www.mindspore.cn/versions)选择想要安装的MindSpore版本,并进行SHA-256完整性校验。以2.7.0rc1版本为例,执行以下命令。 ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` 然后根据CUDA版本及Python版本执行如下命令安装最新版本的MindSpore。 ```bash # Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装MindSpore时会自动下载MindSpore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_gpu_install_pip_en.md b/install/mindspore_gpu_install_pip_en.md index 86735c2ca8..ca85e80156 100644 --- a/install/mindspore_gpu_install_pip_en.md +++ b/install/mindspore_gpu_install_pip_en.md @@ -169,21 +169,21 @@ cd - ### Installing MindSpore -First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.6.0 as an example, execute the following commands. +First, refer to [Version List](https://www.mindspore.cn/versions) to select the version of MindSpore you want to install, and perform SHA-256 integrity check. Taking version 2.7.0rc1 as an example, execute the following commands. ```bash -export MS_VERSION=2.6.0 +export MS_VERSION=2.7.0rc1 ``` Then install the latest version of MindSpore according to the CUDA version and Python version by following the following command. ```bash # Python3.9 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.10 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp310-cp310-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ # Python3.11 -pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/MindSpore/unified/x86_64/mindspore-${MS_VERSION/-/}-cp311-cp311-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependency items are automatically downloaded during MindSpore installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependency by yourself. diff --git a/install/mindspore_gpu_install_source.md b/install/mindspore_gpu_install_source.md index 7a72188638..7ef76e0c9c 100644 --- a/install/mindspore_gpu_install_source.md +++ b/install/mindspore_gpu_install_source.md @@ -254,7 +254,7 @@ bash build.sh -e gpu -S on ## 安装MindSpore ```bash -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` 在联网状态下,安装MindSpore时会自动下载MindSpore安装包的依赖项(依赖项详情参见[setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)中的required_package),其余情况需自行安装依赖。 diff --git a/install/mindspore_gpu_install_source_en.md b/install/mindspore_gpu_install_source_en.md index 3e214ab241..f3ab3f483a 100644 --- a/install/mindspore_gpu_install_source_en.md +++ b/install/mindspore_gpu_install_source_en.md @@ -254,7 +254,7 @@ Where: ## Installing MindSpore ```bash -pip install output/mindspore-*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install output/mindspore-*.whl -i https://repo.huaweicloud.com/repository/pypi/simple/ ``` When the network is connected, dependencies of MindSpore are automatically downloaded during the .whl package installation. (For details about the dependency, see required_package in [setup.py](https://gitee.com/mindspore/mindspore/blob/v2.7.0-rc1/setup.py)). In other cases, you need to install dependencies by yourself. diff --git a/resource/release/release_list_en.md b/resource/release/release_list_en.md index dd5be1b9f2..97cccbf5c1 100644 --- a/resource/release/release_list_en.md +++ b/resource/release/release_list_en.md @@ -3,6 +3,7 @@ - [Release List](#release-list) + - [2.7.0-rc1](#270-rc1) - [2.6.0](#260) - [2.6.0-rc1](#260-rc1) - [2.5.0](#250) @@ -60,6 +61,30 @@ [![View source on Gitee](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source_en.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/resource/release/release_list_en.md) +## 2.7.0-rc1 + +| Module Name | Hardware Platform | Operating System | Python Version | Download Links | SHA-256 | +|-----------|---------------|---------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------| +| MindSpore | Ascend
CPU | Linux-aarch64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-linux_aarch64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/aarch64/mindspore-2.7.0rc1-cp39-cp39-linux_aarch64.whl) | a25de0e2625ad8a5e8a8f8850b044e97db75e19530edf2b8e0d7b3ad29c9989e | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-linux_aarch64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/aarch64/mindspore-2.7.0rc1-cp310-cp310-linux_aarch64.whl) | a570ab1d21c51f81123c09c7fa058431c00c88a412f16d8a9fb85b696978ab67 | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-linux_aarch64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/aarch64/mindspore-2.7.0rc1-cp311-cp311-linux_aarch64.whl) | 589161272a19444921a2e904450e50e8330853c976694c50fd327cb61179243d | +| | Ascend
CPU | Linux-x86_64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-linux_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/x86_64/mindspore-2.7.0rc1-cp39-cp39-linux_x86_64.whl) | 5587c5b0489d91964996e65208eb5f70669abfb5f128f5fe3963097ccec2d31d | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-linux_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/x86_64/mindspore-2.7.0rc1-cp310-cp310-linux_x86_64.whl) | 373b12637e46ffcf5aa573fb9bc2390a41a62a6909bb8dfdf46447dc26b62d6e | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-linux_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/x86_64/mindspore-2.7.0rc1-cp311-cp311-linux_x86_64.whl) | 9db48cc11afe32cb32906edd940058748976fa2225d779ef062e5b24056c0009 | +| | CPU | Windows-x64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-win_amd64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp39-cp39-win_amd64.whl) | 89df451a3cd43f755355a6748a20d37d1486fca70245a625266dce70df78ef52 | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-win_amd64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp310-cp310-win_amd64.whl) | 16d3d7d8f0938376cbdf2a51159af7459588d0bac8f8e3c637c9c7b327d7bfb3 | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-win_amd64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp311-cp311-win_amd64.whl) | ffcbacff0e7d9f8246da75cf3e52f6ddebd03fd6e36e8f76efe3e9f3a1646be9 | +| | | MacOS-aarch64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-macosx_11_0_arm64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/aarch64/mindspore-2.7.0rc1-cp39-cp39-macosx_11_0_arm64.whl) | 0572a4ce193e89b034b2b1b2aef35b06b9b496880b80ca81d8149e4db8d90659 | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-macosx_11_0_arm64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/aarch64/mindspore-2.7.0rc1-cp310-cp310-macosx_11_0_arm64.whl) | 86c9e8a6dc2a881b45914c2edd9ebb768f12ae6bb5cd4aa44e3e624307278de0 | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-macosx_11_0_arm64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/aarch64/mindspore-2.7.0rc1-cp311-cp311-macosx_11_0_arm64.whl) | 7dba0888b59b6e1d5f4106bbb13e745ddf2c9af2a68d97fdec023a0239bbc886 | +| | | MacOS-x64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-macosx_10_15_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp39-cp39-macosx_10_15_x86_64.whl) | 3e9ede2052e0eaac37431b5b1363dfe1e3d73859b590dad4999d9b954412a671 | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-macosx_10_15_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp310-cp310-macosx_10_15_x86_64.whl) | 1004271c43c0978b17b5288be701fb0a54cad3ad568e3199563a78337e653f3b | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-macosx_10_15_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp311-cp311-macosx_10_15_x86_64.whl) | aaf5a73505c853f72eb8d22cdcc9c85c781dfc644735cd1b4c0bdb4248c4b4cc | + +| Commercial edition Installation Guide | Community edition download link (refer to commercial edition for instructions) | +|--------|------------------| +| TBD | TBD | + ## 2.6.0 | Module Name | Hardware Platform | Operating System | Python Version | Download Links | SHA-256 | diff --git a/resource/release/release_list_zh_cn.md b/resource/release/release_list_zh_cn.md index 951e94b706..316db14930 100644 --- a/resource/release/release_list_zh_cn.md +++ b/resource/release/release_list_zh_cn.md @@ -3,6 +3,7 @@ - [发布版本列表](#发布版本列表) + - [2.7.0-rc1](#270-rc1) - [2.6.0](#260) - [2.6.0-rc1](#260-rc1) - [2.5.0](#250) @@ -60,6 +61,32 @@ [![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.7.0rc1/resource/release/release_list_zh_cn.md) +## 2.7.0-rc1 + +| 组件 | 硬件平台 | 操作系统 | Python版本 | 链接 | SHA-256 | +|-----------|---------------|---------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------| +| MindSpore | Ascend
CPU | Linux-aarch64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-linux_aarch64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/aarch64/mindspore-2.7.0rc1-cp39-cp39-linux_aarch64.whl) | a25de0e2625ad8a5e8a8f8850b044e97db75e19530edf2b8e0d7b3ad29c9989e | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-linux_aarch64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/aarch64/mindspore-2.7.0rc1-cp310-cp310-linux_aarch64.whl) | a570ab1d21c51f81123c09c7fa058431c00c88a412f16d8a9fb85b696978ab67 | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-linux_aarch64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/aarch64/mindspore-2.7.0rc1-cp311-cp311-linux_aarch64.whl) | 589161272a19444921a2e904450e50e8330853c976694c50fd327cb61179243d | +| | Ascend
CPU | Linux-x86_64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-linux_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/x86_64/mindspore-2.7.0rc1-cp39-cp39-linux_x86_64.whl) | 5587c5b0489d91964996e65208eb5f70669abfb5f128f5fe3963097ccec2d31d | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-linux_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/x86_64/mindspore-2.7.0rc1-cp310-cp310-linux_x86_64.whl) | 373b12637e46ffcf5aa573fb9bc2390a41a62a6909bb8dfdf46447dc26b62d6e | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-linux_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/unified/x86_64/mindspore-2.7.0rc1-cp311-cp311-linux_x86_64.whl) | 9db48cc11afe32cb32906edd940058748976fa2225d779ef062e5b24056c0009 | +| | CPU | Windows-x64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-win_amd64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp39-cp39-win_amd64.whl) | 89df451a3cd43f755355a6748a20d37d1486fca70245a625266dce70df78ef52 | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-win_amd64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp310-cp310-win_amd64.whl) | 16d3d7d8f0938376cbdf2a51159af7459588d0bac8f8e3c637c9c7b327d7bfb3 | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-win_amd64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp311-cp311-win_amd64.whl) | ffcbacff0e7d9f8246da75cf3e52f6ddebd03fd6e36e8f76efe3e9f3a1646be9 | +| | | MacOS-aarch64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-macosx_11_0_arm64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/aarch64/mindspore-2.7.0rc1-cp39-cp39-macosx_11_0_arm64.whl) | 0572a4ce193e89b034b2b1b2aef35b06b9b496880b80ca81d8149e4db8d90659 | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-macosx_11_0_arm64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/aarch64/mindspore-2.7.0rc1-cp310-cp310-macosx_11_0_arm64.whl) | 86c9e8a6dc2a881b45914c2edd9ebb768f12ae6bb5cd4aa44e3e624307278de0 | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-macosx_11_0_arm64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/aarch64/mindspore-2.7.0rc1-cp311-cp311-macosx_11_0_arm64.whl) | 7dba0888b59b6e1d5f4106bbb13e745ddf2c9af2a68d97fdec023a0239bbc886 | +| | | MacOS-x64 | Python3.9 | [mindspore-2.7.0rc1-cp39-cp39-macosx_10_15_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp39-cp39-macosx_10_15_x86_64.whl) | 3e9ede2052e0eaac37431b5b1363dfe1e3d73859b590dad4999d9b954412a671 | +| | | | Python3.10 | [mindspore-2.7.0rc1-cp310-cp310-macosx_10_15_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp310-cp310-macosx_10_15_x86_64.whl) | 1004271c43c0978b17b5288be701fb0a54cad3ad568e3199563a78337e653f3b | +| | | | Python3.11 | [mindspore-2.7.0rc1-cp311-cp311-macosx_10_15_x86_64.whl](https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.7.0rc1/MindSpore/cpu/x86_64/mindspore-2.7.0rc1-cp311-cp311-macosx_10_15_x86_64.whl) | aaf5a73505c853f72eb8d22cdcc9c85c781dfc644735cd1b4c0bdb4248c4b4cc | + +**Ascend配套软件包** + +| 商用版安装指引文档 | 社区版下载地址(安装参考商用版) | +|--------|------------------| +| TBD | TBD | + ## 2.6.0 | 组件 | 硬件平台 | 操作系统 | Python版本 | 链接 | SHA-256 | -- Gitee