How to check if Python3 was built with '--enable-shared'?

人盡茶涼 提交于 2020-12-29 13:13:22

问题


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:

  1. How can I determine if Homebrew installed Python with the '--enable-shared' option?
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!