MindSpore Earth Installation

View Source On Gitee  

System Environment Information Confirmation

Installation

You can install MindSpore Earth either by pip or by source code.

Installation by pip

# gpu and ascend are supported
export DEVICE_NAME=gpu
pip install mindearth_${DEVICE_NAME}

Installation by Source Code

  1. Download source code from Gitee.

    git clone https://gitee.com/mindspore/mindscience.git
    cd {PATH}/mindscience/MindEarth
    
  2. Compile in Ascend backend.

    bash build.sh -e ascend -j8
    
  3. Compile in GPU backend.

    export CUDA_PATH={your_cuda_path}
    bash build.sh -e GPU -j8
    
  4. Install the compiled .whl file.

    cd {PATH}/mindscience/MindEarth/output
    pip install mindearth_*.whl
    

Installation Verification

Successfully installed, if there is no error message such as No module named 'mindearth' when execute the following command:

python -c 'import mindearth'