This module provides tools for installing Python packages using the easy_install command provided by setuptools.
See also
Get the installed version of a package
Returns None if it can’t be found.
Check if setuptools is installed.
Install the latest version of setuptools.
import fabtools
fabtools.python_setuptools.install_setuptools()
Install Python packages with easy_install.
Examples:
import fabtools
# Install a single package
fabtools.python_setuptools.install('package', use_sudo=True)
# Install a list of packages
fabtools.python_setuptools.install(['pkg1', 'pkg2'], use_sudo=True)
Note
most of the time, you’ll want to use fabtools.python.install() instead, which uses pip to install packages.