python文件查重 为什么找不到文档_找不到文件<Python.h>

在新mac电脑上使用Xcode时遇到了'Python.h'文件未找到的错误,尽管通过命令行能发现多个Python.h版本。该问题可能由于Xcode配置不正确导致。在MacOSX10.8的SDKs中,可以看到Python2.5、2.6和2.7的Python.h。解决方案可能涉及更新或正确链接Python框架。
摘要由CSDN通过智能技术生成

我在用Xcode。我在这台新mac电脑上出错了:

'Python.h' file not found.

在行:

#include

当我在命令行中输入sudo find / -name "Python.h"时,我可以看到它的许多版本存在,甚至在Xcode中也是如此。在

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h

find: /dev/fd/3: Not a directory

find: /dev/fd/4: Not a directory

/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h

/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h

/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h

/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h

有人知道发生了什么吗?是不是我没有正确设置Xcode?在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值