On this page
ensurepip.version
Prev: ensurepip.bootstrap | Up: ensurepip
Rel: ensurepip.bootstrap
Ref: docs.python.org — ensurepip.version
Tags: #public #python3 #stdlib #ensurepip
Import
import ensurepip
from ensurepip import version
Signature & Overview
ensurepip.version()
Returns a string specifying the bundled version of pip.
Usage
import ensurepip
v = ensurepip.version()
assert isinstance(v, str) and "." in v
Gotchas
- Reports the bundled
pipversion, not necessarily the currently installedpipversion in your venv.
REPL Inspect
from ensurepip import version
help(version)
Linked from
Related notes
- tuts/python3/stdlib_module/ensurepip/bootstrap Linked here; links to this page; shared tags: #ensurepip, #stdlib
- tuts/python3/stdlib_module/ensurepip Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib
- tuts/c/stdlib/ctype/isdigit shared tags: #stdlib
- tuts/c/stdlib/ctype/isspace shared tags: #stdlib