This article outlines the steps you can follow to install additional Python modules in DIAdem, either interactively or programmatically.
For DIAdem versions up to 2022 Q4, DIAdem installs Python. As of DIAdem 2023 Q2, DIAdem will no longer install Python. If you want to use Python scripts in DIAdem, install a Python version supported by DIAdem, which can be found at https://www.python.org/ if you don't have it installed.
Make sure DIAdem and Python's versions are compatible. You can verify the compatibility between DIAdem and Python on the corresponding readme document.
You can achieve the same result programmatically by creating a script that calls the Command Prompt and runs the pip install command. For a Python script, you would use the command subprocess.run(["pip", "install", "ModuleName"]). In case you also want to display the module installation output in DIAdem, you can use the following example where the Panda module is being installed (besides the two lines of code, an import has been added at the top):
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.