-1

所以我升级到 Mavericks 希望我的脚本会很好。. . 幸运的是,当我在 Coderunner 中运行我的脚本时,它们可以工作。我在终端中做简单的测试脚本,因为它很简单而且我喜欢它的外观。我不确定为什么框架在 coderunner 中工作而不是在终端中工作。

有谁知道如何解决这个问题?

在此处输入图像描述

在此处输入图像描述

我尝试更新软件并得到同样的错误

Last login: Wed Oct 30 11:08:51 on ttys000
opus-magnum:~ Opus_Magnum$ python
Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> s = 'hello'
>>> print s
Segmentation fault: 11
opus-magnum:~ Opus_Magnum$ 

`

4

1 回答 1

3

您没有运行与 OS X Mavericks 一起发布的正确版本的 python。

[1:17pm][wlynch@watermelon ~] /usr/bin/python2.7
Python 2.7.5 (default, Aug 25 2013, 00:04:04) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
于 2013-10-30T18:18:28.063 回答