Basic Examples (3)
Basic Examples
(3)
List currently available Python packages:
In[1]:=
Out[1]=
pip 19.1.1 from C:\Users\rhennigan\AppData\Roaming\Mathematica\ApplicationData\SystemInstall\Python\lib\site-packages\pip (python 3.7)
———
Check a particular Python session:
In[1]:=
session=StartExternalSession["Python"]
Out[1]=
ExternalSessionObject
In[2]:=
Out[2]=
pip 19.1.1 from C:\Users\rhennigan\AppData\Roaming\Mathematica\ApplicationData\SystemInstall\Python\lib\site-packages\pip (python 3.7)
In[3]:=
DeleteObject[session]
———
Check a specific Python installation using a path returned by the resource function FindPythonExecutable:
In[1]:=
path=ResourceFunction["FindPythonExecutable"][]
Out[1]=
C:\Users\rhennigan\AppData\Roaming\Mathematica\ApplicationData\SystemInstall\Python\python.exe
In[2]:=
Out[2]=
pip 19.1.1 from C:\Users\rhennigan\AppData\Roaming\Mathematica\ApplicationData\SystemInstall\Python\lib\site-packages\pip (python 3.7)