LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does Labview2018 only support python3.6 and 2.7

Solved!
Go to solution

Hello,everyone.I'm trying to use a python program in a vi of labview2018 and put a neural network in it. Pytorch needs to be used in the program, but it does not support pythonenvironment behind 3.7. There are only 2.7 and 3.6 versions in the example of labview2018, so I wonder if it supports a higher Python version?

0 Kudos
Message 1 of 3
(767 Views)
Solution
Accepted by topic author LiDengSheng
See the help here: https://zone.ni.com/reference/en-XX/help/371361R-01/glang/open_python_session/

Python version specifies the version of Python in which the Python session runs. This function supports Python of version 2.7 and 3.6 only. Although unsupported versions might work with the LabVIEW Python functions, NI recommends using supported versions of Python only.
-------------------------------------------------------------------------
In my limited experience, it worked fine with Python 3.10 by using "3.10" as the version string.
0 Kudos
Message 2 of 3
(709 Views)

Thank you very much!

0 Kudos
Message 3 of 3
(654 Views)