Setting environment variables in Windows allows for easier shortcutting and usage of RMG scripts and packages.
Set a new variable with the name
RMGPy with the appropriate value directed at your RMG path.
If you installed the binary version of RMG, the environment value should be set to:
C:\Anaconda can be replaced by wherever your Anaconda was installed.
Your screen might look like this:
If you are installing RMG by source, you can similarly set your
RMGPy variable to the source directory, such as
Click “Ok” on all screens to confirm the changes.
If you set any new environment variables, you must close and reopen any command prompts previously open before the changes can take effect.
If you use Anaconda solely for RMG, it may be more convenient to set your
to be permanently directed to the RMG environment. This will allow you to run RMG easily
without having to type
activate rmg_env in the command prompt every time.
Similarly to setting the environment variable
RMGPy, go to “Edit environment variables for your account” and click edit on the
variable. Replace the paths containing the Anaconda main directory with the RMG environment
For example a path such as
should be changed to:
C:\Anaconda should be wherever your Anaconda was installed.