Python mountain lion中的Numpy单元测试失败

Python mountain lion中的Numpy单元测试失败,python,unit-testing,numpy,scipy,osx-mountain-lion,Python,Unit Testing,Numpy,Scipy,Osx Mountain Lion,我正在尝试在Mac OS 10.8.2 for Python 2.7.2上安装SciPy。我已经更新了XCode 4.6并安装了命令行工具。我按照本线程中的建议使用pip安装了numpy,并且正在使用Mac高性能计算网站上的Fortran编译器 我可以让numpy安装,但当我尝试运行SciPy安装文档中建议的内置SciPy单元测试时,基本算术函数的测试仍然失败 如有任何建议,将不胜感激 Python 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2

我正在尝试在Mac OS 10.8.2 for Python 2.7.2上安装SciPy。我已经更新了XCode 4.6并安装了命令行工具。我按照本线程中的建议使用pip安装了numpy,并且正在使用Mac高性能计算网站上的Fortran编译器

我可以让numpy安装,但当我尝试运行SciPy安装文档中建议的内置SciPy单元测试时,基本算术函数的测试仍然失败

如有任何建议,将不胜感激

Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.test('full')
Running unit tests for numpy
NumPy version 1.6.1
NumPy is installed in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy
Python version 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
nose version 1.2.1
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F............................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................................................................K......................K..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: Test basic arithmetic function errors
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/testing/decorators.py", line 215, in knownfailer
    return f(*args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/tests/test_numeric.py", line 321, in test_floating_exceptions
    lambda a,b:a/b, ft_tiny, ft_max)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/tests/test_numeric.py", line 271, in assert_raises_fpe
    "Type %s did not raise fpe error '%s'." % (ftype, fpeerr))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/testing/utils.py", line 34, in assert_
    raise AssertionError(msg)
AssertionError: Type <type 'numpy.complex64'> did not raise fpe error ''.

======================================================================
FAIL: test_kind.TestKind.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/f2py/tests/test_kind.py", line 30, in test_all
    'selectedrealkind(%s): expected %r but got %r' %  (i, selected_real_kind(i), selectedrealkind(i)))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/testing/utils.py", line 34, in assert_
    raise AssertionError(msg)
AssertionError: selectedrealkind(19): expected -1 but got 16

----------------------------------------------------------------------
Ran 3552 tests in 35.919s

FAILED (KNOWNFAIL=3, SKIP=1, failures=2)
<nose.result.TextTestResult run=3552 errors=0 failures=2>
>>> 
相关线程建议使用Chris Fonnesbeck的SciPy Superpack安装程序脚本,但这似乎是为OS 10.7构建的

我的gcc版本是4.2.1,gfortran版本是4.8.0


提前谢谢。

欢迎来到stackoverflow。你试着联系numpy团队了吗?我会联系numpy,也会尝试Enthound的Python OsX发行版EPD。它适合我,安装简单。做了EPD安装,现在Numpy工作正常!非常感谢你的帮助。