MindSpore XAI Installation
System Requirements
OS: EulerOS-aarch64, CentOS-aarch64, CentOS-x86, Ubuntu-aarch64 or Ubuntu-x86
Device: Atlas training series or GPU CUDA 10.1, 11.1
Python 3.7.5 or 3.9.0
MindSpore 1.7 or above
Installing by pip
Download the .whl
package from MindSpore XAI download page and install with pip
.
pip install mindspore_xai-{version}-py3-none-any.whl
Installing from Source Code
Download source code from gitee.com:
git clone https://gitee.com/mindspore/xai.git
Install the dependency python modules:
cd xai pip install -r requirements.txt
Install the XAI module from source code:
python setup.py install
Optionally, you may build a
.whl
package for installation without step 3:bash package.sh pip install output/mindspore_xai-{version}-py3-none-any.whl
Installation Verification
Upon successful installation, importing ‘mindspore_xai’ module in Python will cause no error:
import mindspore_xai
print(mindspore_xai.__version__)