Install Python packages with pip to either the system or a virtualenv
Return a list of installed packages either globally or in the specified virtualenv
Note
The runas argument is deprecated as of 0.16.2. user should be used instead.
CLI Example:
salt '*' pip.freeze /home/code/path/to/virtualenv/
Install packages with pip
Install packages individually or from a pip requirements file. Install packages globally or to a virtualenv.
Note
The runas argument is deprecated as of 0.16.2. user should be used instead.
CLI Example:
salt '*' pip.install <package name>,<package2 name>
salt '*' pip.install requirements=/path/to/requirements.txt
salt '*' pip.install <package name> bin_env=/path/to/virtualenv
salt '*' pip.install <package name> bin_env=/path/to/pip_bin
Complicated CLI example:
salt '*' pip.install markdown,django editable=git+https://github.com/worldcompany/djangoembed.git#egg=djangoembed upgrade=True no_deps=True
Filter list of installed apps from freeze and check to see if prefix exists in the list of packages installed.
CLI Example:
salt '*' pip.list salt
Uninstall packages with pip
Uninstall packages individually or from a pip requirements file. Uninstall packages globally or from a virtualenv.
Note
The runas argument is deprecated as of 0.16.2. user should be used instead.
CLI Example:
salt '*' pip.uninstall <package name>,<package2 name>
salt '*' pip.uninstall requirements=/path/to/requirements.txt
salt '*' pip.uninstall <package name> bin_env=/path/to/virtualenv
salt '*' pip.uninstall <package name> bin_env=/path/to/pip_bin
New in version 0.17.0.
Returns the version of pip. Use bin_env to specify the path to a virtualenv and get the version of pip in that virtualenv.
If unable to detect the pip version, returns None.
CLI Example:
salt '*' pip.version
Docs for previous releases are available on salt.rtfd.org.
Latest Salt release: 2014.1.13
Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.
22.16.140. salt.modules.pillar
22.16.142. salt.modules.pkg_resource
Upcoming SaltStack events, webinars and local meet ups and user groups.