This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Compatibility of Python Virtual Environments with LabVIEW

Updated Apr 18, 2024

Reported In

Software

  • LabVIEW
  • Enthought Python Integration Toolkit for LabVIEW

Programming Language

  • Python

Other

  • Anaconda (Conda) Environment
  • Virtualenv
  • Venv (Python 3+)

Issue Details

What versions of LabVIEW are compatible with Python virtual environments? 

Solution

LabVIEW 2018 through 2022 Q3 cannot call Python installed within virtual environments. This is due to the way the environment wraps the Python interpreter, making LabVIEW unable to find the interpreter installation to make the necessary calls.

The supported Python environments, installed from The Python Software Foundation are:

  • LabVIEW 2018 to 2020:
    • Native Python 2.7 and 3.6.
  • LabVIEW 2021 and 2022:
    • Native Python 3.6, 3.7, 3.8, and 3.9.
    • Note: Support for Python 2.7 is deprecated.
  • LabVIEW 2023Q1, 2023Q3, 2024Q1:
    • Native Python 3.6 through 3.10.
    • Python Virtual Environments using Open Anaconda 2 and 3 (32 and 64 bit) and Virtual Env. (venv).

 

Additional Information

 
  • Unsupported Python versions may work with the LabVIEW Python functions, NI recommends using supported versions of Python only.
  • Ensure that the bitness of Python corresponds to the bitness of LabVIEW installed on the machine.
  • Use the Python Node to integrate Python Code in LabVIEW using code created in supported Python versions.
  • As of June 2, 2020, the Python Integration Toolkit by Enthought is at end of life. For information on supported environments with the Python Integration Toolkit by Enthought, see the specifications on their website or contact Enthought support.