如何在Mac OS X上安装Python开发标头?

clstaudt:

对于使用Boost.Python的项目(请参见另一个问题),我需要包含eg的Python开发标头pyconfig.h

这些显然从我的系统中丢失了。我已经通过Homebrew安装了Python 3:

cls ~ $ brew info python3
python3: stable 3.3.0
http://www.python.org/
Depends on: pkg-config, readline, sqlite, gdbm
/usr/local/Cellar/python3/3.2.3 (4420 files, 78M)
/usr/local/Cellar/python3/3.3.0 (4843 files, 93M) *
https://github.com/mxcl/homebrew/commits/master/Library/Formula/python3.rb

我也希望通过Homebrew获得标头,但是我找不到它们的软件包。

cls ~ $ brew search python-dev
No formula found for "python-dev". Searching open pull requests...

我有哪些安装这些接头的选项?有自制包装吗?

猫:

这些是您要查找的标题吗?

Cellar/python3/3.3.0//Frameworks/Python.framework/Versions/3.3/include/python3.3m/

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章