LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

chose the Python interpreter modifying the PATH variable

Hello,

 

I use Labview 2018 and try to call Python code from Labview thanks to Python nodes. 

I have developped a Python application in an environment created with PyCharm in Python 3.6. I want to be able to chose the interpreter of this environment because it is linked to my Python libraries.

 

I took the path leading to the folder name "Script" where is stored the Python.exe of the environnment and added it at the beginning of the PATH variable of windows 10.

Now, if I type 'python' in a new terminal, it makes reference to  this interpreter with all the libraries imported in the virtual environment (such as numpy ...).

 

I have read that a Python node take the 1st Python 3.6 it can find in the PATH system variable. However, it sees a Python 3.6 instance that is not even in the PATH.

 

How can I do to select the Python interpreter I want ? Would you know why the default is an instance of Python that is not even in the PATH ? Also, if I remove the folder with this instance of Python, I can't run any Python Node anymore. I thought Labview would try to find another instance of Python in my computer but this is not what I observe.

 

Thank you for your help !

 

amisi97

 

Yohann

 

 

0 Kudos
Message 1 of 2
(1,396 Views)

There already exists a forum case for your needs have a look  Using the Python Node with Other Python Installations - NI Community

0 Kudos
Message 2 of 2
(1,295 Views)