1#!/bin/bash 2 3# install MindSpore-GPU using pip 4if [ "$(uname)" == Linux ]; then 5 if [ "$PY_VER" == "3.7" ]; then 6 echo "building conda package for python3.7" 7 pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.5.0/MindSpore/gpu/x86_64/cuda-10.1/mindspore_gpu-1.5.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 8 elif [ "$PY_VER" == "3.9" ]; then 9 echo "building conda package for python3.9" 10 pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.5.0/MindSpore/gpu/x86_64/cuda-10.1/mindspore_gpu-1.5.0-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple 11 else 12 echo "ERROR: you are trying to build MindSpore conda package on a unsupported python environment, try python 3.7 or 3.9" 13 exit 1 14 fi 15fi 16