Python Install

Python is a common scripting language that is cross platform and has “batteries included”, meaning that it is able to easily integrate with most systems and has many free third-party libraries for just about everything.

  • M-Star provides an pre-processing API that is used to interact with M-Star documents: Python Pre API.

  • Examples are provided that drive pre/solve/post processing: Examples

  • More examples of using Python right from the Solver GUI: Global Scripts

Windows

For detailed instructions to setup the environment on Windows, see Windows Python Setup Guide

Supported Python Versions: 3.9

Note

Newer versions of Python 3.10+ are not currently supported by the M-Star API on Windows.

Python installation options include the following:

  • Python.org installer (recommended): Python 3.9.13 . Choose the “Windows installer (64-bit)” option. Note that newer versions of the 3.9 are available only in source code form.

  • Python Linux installer available from conda.io.

To add the M-Star Python Pre API to your python environment, see Installation

Linux

Supported Python Versions: 3.9, 3.10, 3.11

Python installation options include the following:

  • Install from operating system package repository (recommended)

  • Python Linux installer available from conda.io.

  • On Ubuntu/Debian-based systems, you can use sudo apt install python3.9 to get Python 3.9 installed. Note that you will need to run scripts with python3.9 my_script to invoke the right interpreter.

  • Compile Python from source

To add the M-Star Python Pre API to your python environment, see Installation

Useful Resources