如何在Mac OS X上安装Python开发头文件? [英] How to install the Python development headers on Mac OS X?
本文介绍了如何在Mac OS X上安装Python开发头文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于使用Boost.Python的项目(请参阅这个其他问题)我需要包含eg的Python开发头文件 pyconfig.h
。
这些显然在我的系统中不存在。我已经通过Homebrew安装了Python 3:
cls〜$ brew info python3
python3:stable 3.3.0
http://www.python.org/
取决于:pkg-config,readline,sqlite,gdbm
/usr/local/Cellar/python3/3.2.3(4420个文件,78M )
/usr/local/Cellar/python3/3.3.0(4843个文件,93M)*
https://github.com/mxcl/homebrew/commits/master/Library/Formula/python3。 rb
我更喜欢通过Homebrew获取标题,但是我找不到它们的包。
cls〜$ brew搜索python-dev
找不到python-dev的公式。搜索打开的请求...
我可以选择安装这些头文件吗?是否有自制软件包?
解决方案
这些是您正在寻找的标题:
Cellar / python3 / 3.3.0 // Frameworks / Python.framework / Versions / 3.3 / include / python3.3m /
For a project using Boost.Python (see this other question) I need the Python development headers containing e.g. pyconfig.h
.
These are apparently missing from my system. I've installed Python 3 via Homebrew:
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
I would prefer getting the headers via Homebrew, too, but I cannot find a package for them.
cls ~ $ brew search python-dev
No formula found for "python-dev". Searching open pull requests...
What are my options for installing these headers? Is there a Homebrew package?
解决方案
Are these the headers you are looking for:
Cellar/python3/3.3.0//Frameworks/Python.framework/Versions/3.3/include/python3.3m/
这篇关于如何在Mac OS X上安装Python开发头文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文