Python packages#
Python offers a variety of packages available in the central Python Package Index (PyPI). You can use these packages in your project.
Default packages#
The Python engine used and shipped with Measmatic already includes the following packages by default:
How to install packages#
If you want to use another package, you can install it using pip (pip installs packages). pip is the package installer for Python and is used to install packages from the Python package index and other indexes.
Warning
Any packages that you installed yourself will no longer be available after running the Measmatic installer. They must then be reinstalled.
Follow the steps below to install a package:
-
Close the Measmatic software
-
Open a Windows terminal and navigate to the Python directory within the Measmatic installation directory (Default: C:\Program Files\Measmatic\python).
cd "C:\Program Files\Measmatic\python\"
- Execute the following command to install the latest version of a package and it's dependencies (replace SomePackage with your package name).
.\python.exe -m pip install SomePackage
- After a restart of Measmatic the packages can be used inside a python script.