Solution
NI DIAdem & Python Support:
Starting with NI DIAdem 2025Q2, python virtual environments created with venv (and certain versions of virtualenv) are officially supported
Instructions to use python virtual environment in DIAdem:
- Create python virtual environemnt using windows command prompt:
- Make sure compatible version of python is installed (For ex: Python version 3.8 or higher)
- Right-click the Start charm and type cmd, right-click the Command Prompt tile and select Run as administrator
- Navigate to the DIAdem installation of Python using cd C:\Program Files\NationalInstruments\Shared\Skyline\Python
- Run the following command to create a virtual environment (Eg: DIAdem_venv)
python -m venv DIAdem_venv
- Activate the created virtual environment
DIAdem_venv\Scripts\activate
- Perform any necessary module install using pip (Eg: numpy, pandas, etc.,) in the python virtual environment
pip install pywin32 numpy pandas
-
Reference screenshot showing the virtual environment creation.


- Linking the python virtual environment to NI DIAdem:
- Open NI DIAdem.
- Navigate to Settings >> DIAdem Settings >> Script.
- Select User-defined under Python Installation
-
Navigate to the Python virtual environment directory where python.exe is located (e.g.,C:\ProgramFiles\NationalInstruments\Shared\Skyline\Python\DIAdem_venv\Scripts), copy the full path to python.exe, and paste it into DIAdem settings in the Path field.
-
Restart DIAdem to use the Python virtual environment in scripting.
