在Mac OS X 10.9上使用Python v2.7.6 RC1的带有pandas的Segfault 11

时间:2013-11-01 07:35:15

标签: python pandas ipython osx-mavericks

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

对帧的任何访问都会导致段错误。我已经升级到Python 2.7.6 RC1。也发生在2.7.5,也发生在ipython之外。我该怎么办?

1 个答案:

答案 0 :(得分:3)

这似乎是最近修复的Numpy中的一个错误。见https://github.com/numpy/numpy/issues/3962