1. Installation
1.1. Compiling from source code
This section gives the recommended way to install MoHa. One can find the source code on Github https://github.com/ZhaoYilin/moha.
1.1.1. Prerequisites
To manually install the package, make sure to have the following dependencies:
Python >=3.5
numpy >=1.13.1
scipy >=0.19.1
pytest >=6.2.5
To install the prerequisite modules, use the conda or pip command:
Conda
conda install numpy scipy pytest
Pip
pip install numpy scipy pytest
or
pip install -r requirement.txt
1.1.2. Compile
To compile MoHa from the source code, download the package from Github:
gh repo clone ZhaoYilin/moha
Next, move to the moha
folder and run:
python3 -m pip install -e .
1.1.3. Unit test
To ensure that the installation was successful, run a unit test with the pytest module. Inside the /moha
folder and run:
pytest
1.2. Installation with pip
The pip package provides a precompiled MoHa code (python wheel) which works on almost all Linux systems and most Mac OS X systems. You can install moha with:
pip install moha
If you already have installed MoHa via pip, you can upgrade it to the new version with:
pip install --upgrade moha