# update-moreh

update-moreh is a command that allows you to create a new conda environment and install MoAI Platform on it, or update the version of MoAI Platform already installed in the conda environment. You can use update-moreh in the following situations:

If you have created a new conda environment and MoAI Platform Python packages need to be installed, you can easily install the latest version of MoAI Platform using the update-moreh command.

$ conda create --name my_env python=3.8
$ conda activate my_env
$ update-moreh # Install MoAI Platform 

Do you want to proceed? (y/n, default:n)
y
Moreh Framework installation start...
Moreh Framework installation successful.

If you want to use the latest version of MoAI Platform even in an existing conda environment where MoAI Platform is already installed, you can update the currently used MoAI Platform to the latest version using the update-moreh command alone.

$ update-moreh # Update to the Latest Version
Currently installed: 24.9.0
Possible upgrading version: 24.11.0

Do you want to upgrade? (y/n, default:n)
y
Moreh Framework installation start...
Moreh Framework installation successful.
$ update-moreh
Already installed : 24.11.0

There may be cases where you need to install a specific version of the MoAI Platform. In such cases, you can use the --target option to specify the specific version you want to install. Additionally, you can specify the torch version using the --torch option. The currently supported torch versions are 1.13.1 and 2.1.0.

# Install 24.11.0 version and torch 2.1.0 version
update-moreh --target 24.11.0 --torch 2.1.0 

If the MoAI Platform is not functioning properly due to issues such as dependency conflicts between other packages in the conda environment, you may need to reconstruct the conda environment. In such cases, you can use update-moreh to restore the MoAI Platform within the conda environment. In the latter case, you can use the --force option to reconstruct the environment. (Can be used with the —-target or --torch option)

update-moreh --force --target 24.11.0 --torch 2.1.0