Basic Examples (3)
Basic Examples
(3)
Check if the specified Python package is installed:
In[1]:=
Out[1]=
False
In[2]:=
Out[2]=
True
———
Check a particular Python session:
In[3]:=
session=StartExternalSession["Python"]
Out[3]=
ExternalSessionObject
In[4]:=
Out[4]=
True
In[5]:=
DeleteObject[session]
———
Check a specific Python installation using a path:
In[1]:=
path=ResourceFunction["FindPythonExecutable"][]
Out[1]=
C:\Users\rhennigan\AppData\Roaming\Mathematica\ApplicationData\SystemInstall\Python\python.exe
In[2]:=
Out[2]=
True