在Ubuntu的12.04 x32我已经安装了python 2.7.3,numpy 1.6.1通过sudo apt-get install python-numpy
。 我运行test()
从numpy通过numpy.test()
,我得到:
FAIL:test_pareto(test_random.TestRandomDist)
Traceback(最近调用最后一个):在test_pareto中的文件“/usr/lib/python2.7/dist-packages/numpy/random/tests/test_random.py”,第313行np.testing.assert_array_almost_equal(actual,desired,decimal = 15)文件“/usr/lib/python2.7/dist-packages/numpy/testing/utils.py”,行800,在assert_array_almost_equal头=('数组几乎不等于%d十进制%十进制))文件“/usr/lib/python2.7/dist-packages/numpy/testing/utils.py”,第636行,在assert_array_compare中引发AssertionError(msg)AssertionError:数组几乎不等于十进制15
(错配16.6666666667%)x:array([[2.46852460e + 03,1.41286881e + 03],[5.28287797e + 07,6.57720981e + 07],[1.40840323e + 02,1.9890255e + 05]])y:array ([[2.46852460e + 03,1.41286881e + 03],[5.28287797e + 07,6.57720981e + 07],[1.40840323e + 02,1.98390255e + 05]])
在17.483s跑Ran 3169testing
- 将csv列加载到numpy memmap(快速)
- 如何在windows,64bit,python-2.7中使用mingw安装numpy?
- Python:为什么NumPy从命令行(Windows)执行,而不是从IDLE执行?
- 在Ubuntu上构buildNumPy 1.7.1
- 如何在Windows上安装PyPy的numpy?
失败(KNOWNFAIL = 3,SKIP = 4,失败= 1)
我该怎么办? 我错过了依赖吗?
谢谢。
对于未来的笔记,当试图重做的东西:
numpy
/ scipy
有一些先决条件: g++
gfortran
blas
atlas
lapack
。 这些命令是:
sudo apt-get install g ++ gfortran liblapack-dev libopenblas-dev python-dev python-pip
sudo pip安装鼻子
sudo pip安装numpy
python -c“import numpy; numpy.test()”
对于scipy库,以下工作:
sudo pip安装scipy
python -c“import scipy; scipy.test()”