Essentailly, if one is not using venv, one should go with a basic 'Open Python Session' to open the python session which would call the Python interpretor
from the default location; however, if we'd like to go with the venv created from Anaconda, some steps we'll need to follow.
-
Please check you're using the same bitness of both LabVIEW and Anaconda (e.g., 64-bit)
-
Specify the root folder of Anaconda using the 'Anaconda Path' terminal of the "Open Anaconda Python Session.vi" if this subVI couldn't find the root folder of Anaconda
-
Place the "Open Virtual Env Session.vi" into the block diagram, and use the drop-down menu to select it to "Open Anaconda Pyton Session":
-
Before you specify the "Env name" & "Python version" of the input terminals, please do the following checks:
-
-
use the command conda env list
in shell to check what are the valid venv options to use (base is also there, so base venv is supported using "Open Anaconda Python Session.vi")
-
going into the venv, and use command python --version
to check the python version being used in the venv
-
Specify the corresponding "Env name" & "Python version" you learnt from the 2 steps above
-
You're good to go!