1#!/bin/bash 2 3# install MindSpore-Ascend using pip 4if [ "$(uname)" == Linux ]; then 5 if [ "$(arch)" == aarch64 ]; then 6 echo "running on aarch64 linux system." 7 if [ "$PY_VER" == "3.7" ]; then 8 echo "building conda package for python3.7" 9 pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.3.0/MindSpore/ascend/aarch64/mindspore_ascend-1.3.0-cp37-cp37m-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple 10 elif [ "$PY_VER" == "3.9" ]; then 11 echo "building conda package for python3.9" 12 else 13 echo "ERROR: you are trying to build MindSpore conda package on a unsupported python environment, try python 3.7 or 3.9" 14 exit 1 15 fi 16 elif [ "$(arch)" == x86_64 ]; then 17 echo "running on x86_64 linux system." 18 if [ "$PY_VER" == "3.7" ]; then 19 echo "building conda package for python3.7" 20 pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.3.0/MindSpore/ascend/x86_64/mindspore_ascend-1.3.0-cp37-cp37m-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple 21 elif [ "$PY_VER" == "3.9" ]; then 22 echo "building conda package for python3.9" 23 else 24 echo "ERROR: you are trying to build MindSpore conda package on a unsupported python environment, try python 3.7 or 3.9" 25 exit 1 26 fi 27 else 28 echo "ERROR: unknown linux architecture, try building MindSpore conda package on a supported architecture." 29 exit 1 30 fi 31fi