gpt4 book ai didi

python - PyObjC + Python 3.0 问题

转载 作者:太空狗 更新时间:2023-10-29 18:29:19 25 4
gpt4 key购买 nike

默认情况下,Cocoa-Python 应用程序使用默认的 Python 运行时版本 2.5。我如何配置我的 Xcode 项目,以便它使用更新的 Python 3.0 运行时?我尝试用较新的版本替换项目中包含的 Python.framework,但它没有用。

另外,PyObjc 模块是否与新版本的 Python 兼容?

最佳答案

PyObjC 还不适用于 Python 3.0。根据 PyObjC 开发人员 Ronald Oussoren 的说法,Python 3.0 支持是可能的,但尚未实现:

Support for Python 3.x is on my todo list but is non-trivial to achieve. PyObjC contains a large amount of pretty low-level C code, getting the details w.r.t. to the changes in 3.0 right is not easy. I have looked into a Python 3.x port and this should be fairly easy, but it's still a couple of days work. I'm not planning to work on that before the next release of PyObjC, that's way too long overdue as it is.

我相信补丁会受到欢迎。

关于python - PyObjC + Python 3.0 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/666148/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com