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

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

Examples

Basic Examples (3) 

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]=

Version History

  • 1.0.1 – 01 February 2021
  • 1.0.0 – 14 August 2019

Source Metadata

Related Resources

License Information