Getting Started With Python

Twinleaf-python requires Python 3.10 or later. Check your installed version in a terminal:

python3 --version

On Windows, use python --version instead. If the result is Python 3.10 or later, continue to Install twinleaf-python.

macOS

Install Python with the python.org installer or, if you already use Homebrew, run:

brew install python

Open a new terminal after installation, then check python3 --version.

Linux

On Debian or Ubuntu:

sudo apt update
sudo apt install python3 python3-pip pipx

Twinleaf devices usually appear as serial ports owned by the dialout group. Add your account to that group:

sudo usermod -aG dialout "$USER"

Log out and back in for the group change to take effect. Confirm it with:

groups

For other Linux distributions, use the equivalent packages and serial-port group for your system.

Windows

Install Python from python.org or the Microsoft Store. If you use the python.org installer, select Add Python to PATH.

Open a new Command Prompt and verify the installation:

python --version
python -m pip --version

Next Steps

Continue to Install twinleaf-python. If a command is not found after installation, close and reopen your terminal first. For more help, email contact@twinleaf.com.