Python ensurepip Module
Example
Import ensurepip and confirm it is available (no network actions):
import ensurepip
print("ensurepip")
Try it Yourself »
Definition and Usage
The ensurepip module bootstraps the pip installer into Python environments.
Use it to install pip in a controlled way without relying on external network operations during import.
Members
Member | Description |
---|---|
bootstrap() | Bootstrap pip into the current Python environment. |
version() | Return the bundled pip version string. |