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:

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 locates the models using the GTRANSLATE_MODEL_PATH environment variable, which must be set to the directory containing the models. Alternatively, the --custom_model_path argument of detect_table can be used.

export GTRANSLATE_MODEL_PATH=/path/to/models/

You can permanently save this variable as described here.