Installing Python

Installing Python

Python is the primary scripting language used by MobiFlight to connect custom aircraft APIs to WinWing CDUs. The following must be installed for MobiFlight to work with Python:

  • Python version v3.10 or later.
  • The websockets, gql, and SimConnect Python packages.

Python installation instructions

Install from the Microsoft Store

Install Python from the Microsoft Store.

Screenshot of the Microsoft Store listing for Python 3.13 with the Install button highlighted.

Install required Python packages

Open a Command Prompt:

Screenshot of Windows start menu with the Command Prompt application highlighted.

Then run the following command:

pip install gql websockets simconnect --upgrade --no-warn-script-location
Screenshot of Command Prompt with the pip install command entered.

Important

The command must be run from a Command Prompt, not from within Python.

If the result of the command is SyntaxError: invalid syntax, it means it was run from within Python instead of a command prompt.