Macport Python 与 PyObj 和 XCode
如何获得 Macport Python 版本以与 XCode 配合使用?我必须选择哪个Python.framework?
How can I get the Macport Python version to work with XCode? Which Python.framework do I have to choose?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许看看这里:< https://superuser.com/questions/ 35256/how-can-i-change-the-default-python-version-on-snow-leopard>。最终的解决方案提到使用 python_select。假设您以标准方式安装不同版本的 Python,这将允许您在它们之间切换,然后 Xcode 应该遵循新的默认值。如果您使用的是 ActivePython,情况会有所不同...但对于 ActivePython,如果您导出 ActivePython 可执行文件所在的 PYTHONPATH,Xcode 应该将其视为默认值(至少在我的机器上是自动执行的,运行 OS X 10.5 和 ActivePython 2.7)。
Perhaps take a look here: < https://superuser.com/questions/35256/how-can-i-change-the-default-python-version-on-snow-leopard >. The final solution mentions using python_select. Assuming you install different versions of Python in a standard way, this will let you switch between them and then Xcode should respect the new default. If you're using ActivePython, it will be different... but in the case of ActivePython, if you export the PYTHONPATH where your ActivePython executable is located, Xcode should respect that as the default (at least is automatically did on my machine, running OS X 10.5 and ActivePython 2.7).