【问题标题】:launch error code 8 to build python or python3 on xcode启动错误代码 8 以在 xcode 上构建 python 或 python3
【发布时间】:2021-09-10 04:35:01
【问题描述】:

我是 python 新手,想在 xcode 上学习它。我遵循了互联网上的一些方法,但是当我测试
print('hello')

构建成功消息出现但没有结果和迷你窗口 'Launch error There is a problem launching using posix_spawn (error code: 8).' details : Code: 9 Recovery Suggestion: There is a problem launching using posix_spawn (error code: 8) -> Error Screenshot

这是我为启动 python 所做的。

新建 xcode 项目 other-external build system-build tool:usr/bin/python3 - new file-empty-save as: python3.py, target: testing(project name)- edit scheme-info-executable:Python3 , 取消选中 debug executable -arguments-arguments 在启动时传递:python3.py,扩展变量基于:testing-options-working 目录:custom /testing(我保存项目的路径) -print('hello') -run-error

我该怎么办?我下载了python3并尝试了python和python3来构建,同样的错误。 IDLE Shell 3.9.1 运行良好

xcode 版本为 12.2

【问题讨论】:

    标签: python python-3.x xcode


    【解决方案1】:

    我遇到了与您描述的相同的错误,我尝试使用 HomeBrew 更新 Python,但已成功完成。 我几乎得出结论,Xcode12 与 Python3 不兼容。 也许一个被照亮的灵魂可以帮助我们。

    【讨论】:

    • 请在您的回答中提供更多详细信息。正如目前所写的那样,很难理解您的解决方案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-18
    • 1970-01-01
    • 1970-01-01
    • 2016-01-09
    • 2023-03-31
    • 2017-01-28
    相关资源
    最近更新 更多