

If altinstall is set, then pipX will not be installed. X.Y stands for the current version of Python). User indicates whether to use the user scheme rather than installing Of an earlier version of pip to the available version. Upgrade indicates whether or not to upgrade an existing installation If root is None, then installation uses the default install location Root specifies an alternative root directory to install relative to. bootstrap ( root = None, upgrade = False, user = False, altinstall = False, default_pip = False, verbosity = 0 ) ¶īootstraps pip into the current or designated environment. Installed when bootstrapping an environment. Returns a string specifying the available version of pip that will be Module API ¶Įnsurepip exposes two functions for programmatic use: ensurepip. Providing both of the script selection options will trigger an exception. Pip script will be installed in addition to the two regular scripts. default-pip: if a “default pip” installation is requested, the altinstall: if an alternate installation is requested, the pipX Scripts installed can be controlled through two additional command line X.Y stands for the version of Python used to invoke ensurepip). Permitted inside an active virtual environment).īy default, the scripts pipX and pipX.Y will be installed (where Than globally for the current Python installation (this option is not user: Installs pip into the user site packages directory rather Or the default root for the current Python installation. Rather than the root of the currently active virtual environment (if any) root : Installs pip relative to the given root directory Through two additional command line options: The installation location can be controlled (if one is active) or into the system site packages (if there is noĪctive virtual environment). By default, pip is installed into the current virtual environment
