【发布时间】: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