问题
Environment:
- Mac OS X 10.8.5
- Apache 2.2.26
- Homebrew Python 3.3.3
Problem:
I am trying to install mod_wsgi but first need to determine if Python was configured and compiled with the '--enable-shared' option.
Questions:
- How can I determine if Homebrew installed Python with the '--enable-shared' option?
- If it was not installed, what is the correct way to install it?
Thank you!
回答1:
From the python repl:
import sysconfig
sysconfig.get_config_vars('Py_ENABLE_SHARED')
来源:https://stackoverflow.com/questions/23201498/how-to-check-if-python3-was-built-with-enable-shared