PaleNeutron
PaleNeutron

Reputation: 3235

How to get a specific python's config information

I remember there is a command can show under which option a specific python was build, but I forget it QAQ

the option I mean is like this:

when compile python from source, we use:

./configure --prefix=/a/path/ --cflags=something

Upvotes: 2

Views: 66

Answers (1)

PaleNeutron
PaleNeutron

Reputation: 3235

python -c "import sysconfig; print sysconfig.get_config_var('CONFIG_ARGS')"

This is the answer~

Upvotes: 1

Related Questions