Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/365.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python scipy安装测试未通过测试\u decomp.test\u eigh_Python_Numpy_Scipy_Nosetests - Fatal编程技术网

Python scipy安装测试未通过测试\u decomp.test\u eigh

Python scipy安装测试未通过测试\u decomp.test\u eigh,python,numpy,scipy,nosetests,Python,Numpy,Scipy,Nosetests,我已经通过apt get在ubuntu 14.10 64位上安装了numpy、scipy和openblas。 numpy.test运行时没有任何失败,但scipy.test在test\u decomp.test\u eigh上失败 Running unit tests for scipy NumPy version 1.9.1 NumPy is installed in /usr/local/lib/python2.7/dist-packages/numpy SciPy version 0.14

我已经通过apt get在ubuntu 14.10 64位上安装了numpy、scipy和openblas。 numpy.test运行时没有任何失败,但scipy.test在test\u decomp.test\u eigh上失败

Running unit tests for scipy
NumPy version 1.9.1
NumPy is installed in /usr/local/lib/python2.7/dist-packages/numpy
SciPy version 0.14.0
SciPy is installed in /usr/lib/python2.7/dist-packages/scipy
Python version 2.7.8 (default, Oct 20 2014, 15:05:19) [GCC 4.9.1]
nose version 1.3.4
....
....
....
======================================================================
FAIL: test_decomp.test_eigh('general ', 6, 'F', True, False, False, (2, 4))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/usr/lib/python2.7/dist-packages/scipy/linalg/tests/test_decomp.py", line 648, in eigenhproblem_general
assert_array_almost_equal(diag2_, ones(diag2_.shape[0]), DIGITS[dtype])
File "/usr/local/lib/python2.7/dist-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
precision=decimal)
File "/usr/local/lib/python2.7/dist-packages/numpy/testing/utils.py", line 665, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 4 decimals

(mismatch 100.0%)
  x: array([ 0.,  0.,  0.], dtype=float32)
  y: array([ 1.,  1.,  1.])
我认为我的blas版本有问题,但我尝试了几个blas版本,但对测试结果毫无影响。
有什么建议吗?

在SciPy 0.14的发行说明中,在向后不兼容更改部分,我发现了以下注释:广义特征值问题的特征向量被规范化为2-范数的单位向量,而不是遵循拉巴克规范化约定。由于许可证和安装问题,已删除scipy.sparse.linalg中不推荐使用的UMFPACK包装器。如果可用,scikits.umfpack仍在spsolve和因式分解函数中透明使用。否则,在这些函数中使用SuperLU。也许这和考试失败有关?