如何在 Mac OS X 上安装 Python 开发头文件?
- 作者: 朱银龙40522687
- 来源: 51数据库
- 2022-11-30
问题描述
对于使用 Boost.Python 的项目(请参阅 其他问题) 我需要包含例如的 Python 开发标头pyconfig.h.
For a project using Boost.Python (see this other question) I need the Python development headers containing e.g. pyconfig.h.
这些显然从我的系统中丢失.我已经通过 Homebrew 安装了 Python 3:
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.51sjk.com/Upload/Articles/1/0/337/337555_20221130102853644.jpg 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 获取标头,但我找不到它们的包.
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...
我有哪些安装这些标头的选项?有 Homebrew 包吗?
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/
推荐阅读
热点文章
Discord.py(重写)on_member_update 无法正常工作
0
Discord.py 在 vc 中获取用户分钟数
0
discord.py 重写 |为我的命令出错
0
Discord.py rewrite 如何 DM 命令?
0
播放音频时,最后一部分被切断.如何解决这个问题?(discord.py)
0
在消息删除消息 Discord.py
0
如何使 discord.py 机器人私人/直接消息不是作者的人?
0
(Discord.py) 如何获取整个嵌入内容?
0
Discord bot 尽管获得了许可,但不能提及所有人
0
Discord.py discord.NotFound 异常
0
