On this page
platform.libc_ver
Prev: platform.java_ver | Up: platform | Next: platform.mac_ver
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.libc_ver
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import libc_ver
Signature & Overview
platform.libc_ver(executable=None, lib='', version='', chunksize=16384)
Tries to determine the libc version that the file executable (which defaults to the Python interpreter) is linked against.
Usage
import platform
lib, ver = platform.libc_ver()
assert isinstance(lib, str) and isinstance(ver, str)
Gotchas
- Mainly meaningful on Linux (returns
("", "")on macOS/Windows).
REPL Inspect
from platform import libc_ver
help(libc_ver)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/java_ver Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/mac_ver Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/android_ver Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/AndroidVer Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/architecture Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/freedesktop_os_release Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/platform Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/platform/invalidate_caches shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/ios_ver shared tags: #platform, #stdlib