# pydoc > sysconfig

---
type: CommandReference
command: sysconfig
mode: pydoc
section: 
source: pydoc3
---

## Quick Reference

- `get_config_vars()` — return dict of all config variables for current platform
- `get_config_var(name)` — return value of a single config variable
- `get_paths(scheme=None)` — return dict of install paths for a scheme
- `get_path(name, scheme=None)` — return a single install path
- `get_platform()` — return platform identifier string (e.g., linux-i586)
- `get_scheme_names()` — return tuple of all install scheme names
- `get_python_version()` — return Python version string
- `parse_config_h(file)` — parse a config.h-style file into dict

## Name

Access to Python’s configuration information.

## Synopsis

python
import sysconfig
## Options (Functions)

- `get_config_h_filename()` — return the path of `pyconfig.h`
- `get_config_var(name)` — return value of a single variable using the dict returned by `get_config_vars()`; equivalent to `get_config_vars().get(name)`
- `get_config_vars(*args)` — with no arguments, return a dict of all configuration variables relevant for the current platform (on Unix, all variables from Python’s installed Makefile; on Windows, a smaller set). With arguments, return a list of values for each argument looked up in the dict.
- `get_makefile_filename()` — return the path of the Makefile
- `get_path(scheme)` — return a path corresponding to the install scheme
- `get_path_names()` — return a tuple of path names
- `get_paths(scheme=None)` — return a mapping of install scheme; if no scheme given, uses default for current platform
- `get_platform()` — return a string identifying the current platform (used for platform-specific build directories and distributions; includes OS name, version, architecture; examples: `linux-i586`, `solaris-2.6-sun4u`, `win-amd64`, `win32`)
- `get_python_version()` — return Python version string
- `get_scheme_names()` — return a tuple of scheme names
- `parse_config_h(file, dict=None)` — parse a config.h-style file; return dict of name/value pairs; optional second argument provides a dict to use instead of a new one

## Data

`__all__ = ['get_config_h_filename', 'get_config_var', 'get_config_vars', ...]`

## File

`/usr/lib/python3.10/sysconfig.py`

## Examples

python
import sysconfig

# Get all configuration variables
config = sysconfig.get_config_vars()
print(config['prefix'])

# Get a single variable
print(sysconfig.get_config_var('VERSION'))

# Get platform identifier
print(sysconfig.get_platform())

# Get default install paths
paths = sysconfig.get_paths()
print(paths['purelib'])
## See Also

- [Python sysconfig module reference](https://docs.python.org/3.10/library/sysconfig.html)