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 dir: 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