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 (3) 

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 returned by the resource function FindPythonExecutable:

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

Version History

  • 1.0.0 – 14 August 2019

Related Resources

License Information