Files
Iliyan Angelov 62c1fe5951 updates
2025-12-01 06:50:10 +02:00

11 lines
212 B
Python

from pip_api._call import call
def version() -> str:
result = call("--version")
# result is of the form:
# pip <version> from <directory> (python <python version>)
return result.split(" ")[1]