Python2.7.2用のMacOS10.8.2にSciPyをインストールしようとしています。XCode 4.6を更新し、コマンドラインツールをインストールしました。このスレッドで提案されているように、pipを使用してnumpyをインストールしました。Mac10.8.2へのNumpyのインストールと、High Performance Computing for MacのWebサイト( http://hpc.sourceforge.net/ )のFortranコンパイラーを使用しています。
numpyをインストールすることはできますが、組み込みのSciPy単体テストを実行しようとすると(SciPyのインストールドキュメントで提案されているように)、基本的な算術関数のテストでFAILが発生し続けます。
任意の提案をいただければ幸いです。
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>
>>>
関連するスレッドは、ChrisFonnesbeckによるSciPySuperpackインストーラースクリプトの使用を提案していますが、これはOS10.7用に構築されているようです。
私のgccバージョンは4.2.1で、gfortranバージョンは4.8.0です。
前もって感謝します。