Skip to content
Search

Python:sysconfig

lastmod 2021-11-05created 2021-11-052 edits

How to check the compile options of an existing Python

Can be checked with Python:sysconfig: There is a module to see the system config

import sysconfig
print(sysconfig.get_config_vars())

It offers an interface to get individual variables as well.

sysconfig.get_config_var('CONFIG_ARGS')

It is also accessible via shell:

python3 -m sysconfig | less

before python2.7, you have to use

import distutils.sysconfig
print distutils.sysconfig.get_config_vars()

See also

author Zer0 sitemap