相关疑难解决方法(0)

运行两个命令时Python崩溃(分段错误:11)

当我运行第二个命令时,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.
>>> print 1
1
>>> print 2
Segmentation fault: 11
Run Code Online (Sandbox Code Playgroud)

为什么?

我正在使用Mac OS X Mavericks.我认为这是相关的,因为它是测试版.

编辑:

忘记OSX提供的问题详细信息:

Process:         Python [11053]
Path:            /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         2.7.5 (2.7.5)
Code Type:       X86-64 (Native)
Parent Process:  bash [9217]
Responsible:     Terminal [3148]
User ID:         501

Date/Time:       2013-08-10 00:29:28.571 -0300
OS Version:      Mac OS X 10.9 (13A524d)
Report …
Run Code Online (Sandbox Code Playgroud)

python osx-mavericks

35
推荐指数
2
解决办法
2万
查看次数

标签 统计

osx-mavericks ×1

python ×1