当前位置:首页 > 操作系统 > MacOs

在Mac OS X 10.9上带有Python v2.7.6 RC1的带有熊猫的Segfault 11

<code>In [1]: import json

In [2]: path = 'ch02/usagov_bitly_data2012-03-16-1331923249.txt'

In [3]: from pandas import DataFrame, Series;

In [4]: records = [json.loads(line) for line in open(path)]

In [5]: frame = DataFrame(records)

In [6]: frame['tz'][:10]
Segmentation fault: 11
</code>

对框架的任何访问都会导致段错误.我已经升级到Python 2.7.6 RC1.在2.7.5中也发生过,在ipython之外也发生过.我是什么做的?

解决方法:

这似乎是Numpy中的错误,最近已修复.查看https://github.com/numpy/numpy/issues/3962


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐