我通过源代码编译在Mac OS X(山狮)上安装了Numpy和Scipy。
numpy测试结果很棒。但scipy测试存在问题。
In [1]: import scipy
In [2]: scipy.test()
Running unit tests for scipy
NumPy version 1.6.2
NumPy is installed in /usr/local/lib/python2.7/site-packages/numpy
SciPy version 0.11.0
SciPy is installed in /usr/local/lib/python2.7/site-packages/scipy
Python version 2.7.3 (default, Dec 4 2012, 00:30:38) [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))]
nose version 1.2.1
.....................................................................................................................................................................................
F.FFPython(66098,0x7fff74ae5180) malloc: *** error for object 0x7fe9cb2e07b0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
任何人都知道如何解决这个问题?
感谢pv似乎是一个错误。
test_definition (test_basic.TestDoubleIFFT) ... FAIL
test_definition_real (test_basic.TestDoubleIFFT) ... ok
test_djbfft (test_basic.TestDoubleIFFT) ... FAIL
test_random_complex (test_basic.TestDoubleIFFT) ... FAIL
Python(66990,0x7fff74ae5180) malloc: *** error for object 0x7f9f53d8dec0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
我很好奇其余的测试。如果这次失败的测试是唯一的问题,那就没问题。
如何跳过此失败的测试并继续其余测试?
答案 0 :(得分:0)
使用scipy.test("full", verbose=2)
运行,将输出存储到文件中,并提交错误报告:
http://projects.scipy.org/scipy/(但如果问题已知,请先尝试搜索)