# Download
wget https://tools.mindspore.cn/tools/conda/miniconda/Miniconda3-latest-Linux-x86_64.sh

# Install
bash Miniconda3-latest-Linux-x86_64.sh
yes
/home/miniconda3
yes

# Cancel certificate verification
source /home/miniconda3/bin/activate base
conda config --set ssl_verify false

# Create python env
umask 022
conda create -n ci python=3.7.5
source /home/miniconda3/bin/activate ci

# Install sault lib
pip install --upgrade pip
pip install paramiko
pip install pyyaml
pip install scp
pip install flask
pip install requests
pip install flask_restful
pip install argparse
pip install pytest
pip install virtualenv
pip install nose
pip list

#Install test lib
pip install pytest
pip install pytest-xdist
pip install 'setuptools>=40.8.0'
pip install 'wheel>=0.32.0'
pip install 'numpy>=1.17.0'
pip install 'pillow>=6.2.0'
pip install 'protobuf>=3.8.0'
pip install 'asttokens>=1.1.13'
pip install 'scipy==1.3.3'
pip install 'easydict>=1.9'
pip install 'sympy>=1.4'
pip install 'cffi>=1.13.2'
pip install 'decorator>=4.4.0'
pip install 'matplotlib>=3.1.3'
pip install 'pybind11>=2.4.3'
pip install 'attrdict>=2.0.1'
pip install 'Click>=7.0'
pip install 'Flask>=1.1.1'
pip install 'Flask-Cors>=3.0.8'
pip install 'gunicorn>=19.9.0'
pip install 'itsdangerous>=1.1.0'
pip install 'Jinja2>=2.10.1'
pip install 'MarkupSafe>=1.1.1'
pip install 'marshmallow>=2.19.2'
pip install 'psutil>=5.6.1'
pip install 'six>=1.12.0'
pip install 'Werkzeug>=1.0.0'
pip install 'tabulate>=0.8.6'
pip install 'opencv-python>=4.1.2.30'
pip install 'sklearn>=0.0'
pip install 'pandas>=1.0.2'
pip install 'grpcio>=1.29.0'
pip install mmcv==0.2.14
pip install gensim
pip list

# Install tensorflow
pip install tensorflow==1.15.0

# Install pytorch
pip install numpy pyyaml setuptools cffi typing
pip install torch==1.5.0
pip install torchvision==0.6.0

# Install mindspore
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.5.0-beta/MindSpore/cpu/ubuntu_x86/mindspore-0.5.0-cp37-cp37m-linux_x86_64.whl
pip uninstall -y mindspore
