如何检查Python3是否使用"--enable-shared"构建? [英] How to check if Python3 was built with '--enable-shared'?
本文介绍了如何检查Python3是否使用"--enable-shared"构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
环境:
- Mac OS X 10.8.5
- Apache 2.2.26
- 自制的Python 3.3.3
问题:
我正在尝试安装mod_wsgi,但首先需要确定是否已使用'--enable-shared'选项配置和编译了Python.
I am trying to install mod_wsgi but first need to determine if Python was configured and compiled with the '--enable-shared' option.
问题:
- 如何确定Homebrew是否使用'--enable-shared'选项安装了Python?
- 如果未安装,正确的安装方式是什么?
谢谢!
推荐答案
来自python repl:
From the python repl:
import sysconfig
sysconfig.get_config_vars('Py_ENABLE_SHARED')
这篇关于如何检查Python3是否使用"--enable-shared"构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文