Fixing Potential Issues with the Environment
In most cases you should run TC-Python within your global Python 3 interpreter and not use Virtual Environments unless you have a good reason to do so.
If there are problems with the interpreter settings, for example, a common problem when you first use TC-Python is the message No module named tc_python, which you can resolve in the Settings window as follows:
- Go the menu File → Settings.
- Navigate in the tree to <Project.YourProjectName> and choose Project Interpreter.
- Click on the settings symbol close to the Project Interpreter drop-down menu and choose Add.
- Now choose System Interpreter and add your existing Python 3 interpreter.
- Select your added interpreter and confirm.
If you are not following the recommended approach and create a new project (File → New Project…), you need to consider that by default the options to choose the interpreter are hidden within the Create Project window. For this, click Project Interpreter: New Virtual Environment and in most cases choose your System Interpreter containing the Python bundled to Thermo‑Calc instead of the default New Virtual Environment.
If you really need to use a Virtual Environment, it is recommended you review the hints provided in the Best Practices section in the full TC‑Python HTML help or PDF.