MCPcopy
hub / github.com/pypa/pipx / get_python_version

Method get_python_version

src/pipx/venv.py:464–465  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

462 self.pipx_metadata.write()
463
464 def get_python_version(self) -> str:
465 return run_subprocess([str(self.python_path), "--version"]).stdout.strip()
466
467 def list_installed_packages(self, not_required: bool = False) -> set[str]:
468 return self.backend.list_installed(

Callers 1

create_venvMethod · 0.95

Calls 1

run_subprocessFunction · 0.90

Tested by

no test coverage detected