Wolfram Research

Function Repository Resource:

PythonPackageInstallerInformation

Source Notebook

Display the information about your Python package installer

Contributed by: Wolfram Staff

ResourceFunction["PythonPackageInstallerInformation"][]

gives the version of your Python package installer.

Details and Options

ResourceFunction["PythonPackageInstallerInformation"][] is effectively equivalent to executing the command line pip --version.

Examples

Basic Examples

List currently available Python packages:

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

Check a particular Python session:

In[2]:=
session = StartExternalSession["Python"]
Out[2]=
In[3]:=
ResourceFunction["PythonPackageInstallerInformation"][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["PythonPackageInstallerInformation"][path]
Out[6]=

Resource History

Source Metadata

Related Resources

License Information