Installing Additional Python Modules to DIAdem 2020

Updated Nov 4, 2020

Environment

Software

  • DIAdem

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

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.