pip
Step 1: Install third-party dependencies
Ensure that the software described in Third-party software are on the system path.
Step 2: Install gTranslate via pip
Note: It is strongly recommended to create a virtual environment for each version of gTranslate installed.
Once the third-party dependencies have been installed, install gTranslate via `pip https://pypi.org/project/gtdb-gtranslate/`_:
python -m pip install gtdb-gtranslate
Alternatively, if you have a previously installed gTranslate, you can upgrade the latest version:
python -m pip install --upgrade gtdb-gtranslate
Step 3: Download and alias the gTranslate models
gTranslate accept both an environment variable named GTRANSLATE_MODEL_PATH to be set to the directory
containing the models or accept a flag called –custom_model_path that points to the directory containing the models.
export GTRANSLATE_MODEL_PATH=/path/to/models/
You can permanently save this variable as described here.