macOS: Setting Environment Variables

In order to use TC-Python on macOS you need to set some environment variables.

TC25B_HOME=/Applications/Thermo‑Calc-2025b.app/Contents/Resources

User Credentials License Activations

TC_LICENSE_SPRING=y

License File Type Activations

If you use a license server:

LSHOST=<name-of-the-license-server>

If you have a node-locked license:

LSHOST= NO-NET

LSERVRC=/Users/Shared/Thermo‑Calc/lservrc

PyCharm IDEs

In PyCharm, you can add environment variables in the configurations.

Select Run Edit Configurations to open the Run/Debug Configurations window. Enter the environment variable(s) by clicking the button to the right of the Environment Variables text field. Now the environment variables(s) will be set for each new configuration by default.

Existing configurations need to be removed and recreated to obtain the environment variables in them.

The same way for configuring the environment variables can be used on other operating systems as if necessary.

Mac Edit Configurations example in IDE related to environment variables