On this page
sysconfig.get_paths
Prev: sysconfig.get_path_names | Up: sysconfig | Next: sysconfig.get_platform
Rel: sysconfig.get_config_h_filename, sysconfig.get_config_var, sysconfig.get_config_vars, sysconfig.get_makefile_filename
Ref: docs.python.org — sysconfig.get_paths
Tags: #public #python3 #stdlib #sysconfig
Import
import sysconfig
from sysconfig import get_paths
Signature & Overview
sysconfig.get_paths(scheme='osx_framework_library', vars=None, expand=True)
Return a mapping containing an install scheme.
Usage
import sysconfig
paths = sysconfig.get_paths()
assert 'scripts' in paths and 'purelib' in paths
Gotchas
- Pass
scheme='posix_user'or'nt_user'to inspect user-level install locations.
REPL Inspect
from sysconfig import get_paths
help(get_paths)
Linked from
Related notes
- tuts/python3/stdlib_module/sysconfig/get_path_names Linked here; links to this page; shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig/get_platform Linked here; links to this page; shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sysconfig/get_config_h_filename Linked here; shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig/get_config_var Linked here; shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig/get_config_vars Linked here; shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig/get_makefile_filename Linked here; shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig/get_path shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig/get_python_version shared tags: #stdlib, #sysconfig
- tuts/python3/stdlib_module/sysconfig/get_scheme_names shared tags: #stdlib, #sysconfig