Wolfram Research

Function Repository Resource:

PythonPackageList

Source Notebook

List Python packages available on your machine

Contributed by: Wolfram Staff

ResourceFunction["PythonPackageList"][]

lists installed Python packages.

ResourceFunction["PythonPackageList"][python]

lists packages for the installation python.

Details and Options

ResourceFunction["PythonPackageList"][] is effectively equivalent to executing the command line pip list.

Examples

Basic Examples

List currently available Python packages:

In[1]:=
ResourceFunction["PythonPackageList"][]
Out[1]=

Check a particular Python session:

In[2]:=
session = StartExternalSession["Python"]
Out[2]=
In[3]:=
ResourceFunction["PythonPackageList"][session]
Out[3]=
In[4]:=
DeleteObject[session]

Check a specific Python installation using a path:

In[5]:=
path = ResourceFunction["FindPythonExecutable"][]
Out[5]=
In[6]:=
ResourceFunction["PythonPackageList"][path]
Out[6]=

Resource History

Source Metadata

Related Resources

License Information