Installing Additional Python Modules to DIAdem 2020

Updated May 19, 2021



  • DIAdem

My automation algorithms use certain Python modules. How can I add them to the DIAdem Python script?

Firstly, you may need to check the compatibility of your python version and DIAdem/SystemLink. For example, DIAdem 2020SP1 supports Python 3.6 and 3.7 (64 bit). You can find the information on readme documents.

We have two scenarios: a) DIAdem is installed on a PC that already runs a Python version or b) DIAdem installs the only Python version for this PC.

To a) A Python version is already installed on the PC (parallel to the DIAdem Python version).
  • Make sure that you have installed the PyWin32 module in your Python version (Pip install PyWin32). This is required for the connection to DIAdem.
  • Install your Python library.
  • Specify the Python installation path in the DIAdem configuration for SCRIPT (Menu >> Settings >> DIAdem Settings >> SCRIPT).
  • Import the library into DIAdem and use its contents.
To b) Only the Python version that comes with DIAdem is installed on the PC.
  • To prevent admin access rights for the installation of Python modules, we recommend to install your own Python 3.7 version and follow the description under a).

Additional Information

Additional information about how DIAdem finds the Python version to work with:
  • First DIAdem takes the Python version which is entered in the DIAdem configuration for SCRIPT.
  • If this is empty (the default) DIAdem takes the Python version which is entered in the Windows path environment.
  • In all other cases and if DIAdem finds an installed version which is not 3.7 or 3.6, DIAdem takes the version which is installed together with DIAdem.