Basic Examples (3)
Basic Examples
(3)
Display the Python version:
In[1]:=
Out[1]=
Python 3.7.0
———
Get the Python version corresponding to an :
In[1]:=
session=StartExternalSession["Python"]
Out[1]=
ExternalSessionObject
In[2]:=
Out[2]=
Python 3.7.0
In[3]:=
DeleteObject[session]
———
Get the version for a specific path:
In[1]:=
path=ResourceFunction["FindPythonExecutable"][]
Out[1]=
C:\Users\rhennigan\AppData\Roaming\Mathematica\ApplicationData\SystemInstall\Python\python.exe
In[2]:=
Out[2]=
Python 3.7.0