关于python 2.7:scipy.test()导致错误

scipy.test() results in errors

坐骨神经痛。使用PIP(0.17.0)安装了最新版本。运行scipy.test(),我得到以下错误。他们可以忽略吗?我使用的是python 2.7.6。

谢谢你的帮助。

======================================================================

ERROR: test_add_function_ordered (test_catalog.TestCatalog)

Traceback (most recent call last):
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py", line 477, in test_add_function_ordered
q.add_function('f',string.upper)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 833, in add_function
self.add_function_persistent(code,function)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 849, in add_function_persistent
cat = get_catalog(cat_dir,mode)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 486, in get_catalog
sh = shelve.open(catalog_file,mode)
File"/usr/lib/python2.7/shelve.py", line 239, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File"/usr/lib/python2.7/shelve.py", line 222, in init
import anydbm
File"/usr/lib/python2.7/anydbm.py", line 50, in
_errors.append(_mod.error)
AttributeError: 'module' object has no attribute 'error'

======================================================================

ERROR: test_add_function_persistent1 (test_catalog.TestCatalog)

Traceback (most recent call last):
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py", line 466, in test_add_function_persistent1
q.add_function_persistent('code',i)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 849, in add_function_persistent
cat = get_catalog(cat_dir,mode)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 486, in get_catalog
sh = shelve.open(catalog_file,mode)
File"/usr/lib/python2.7/shelve.py", line 239, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File"/usr/lib/python2.7/shelve.py", line 222, in init
import anydbm
File"/usr/lib/python2.7/anydbm.py", line 50, in
_errors.append(_mod.error)
AttributeError: 'module' object has no attribute 'error'

======================================================================

ERROR: test_get_existing_files2 (test_catalog.TestCatalog)

Traceback (most recent call last):
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py", line 394, in test_get_existing_files2
q.add_function('code', os.getpid)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 833, in add_function
self.add_function_persistent(code,function)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 849, in add_function_persistent
cat = get_catalog(cat_dir,mode)
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 486, in get_catalog
sh = shelve.open(catalog_file,mode)
File"/usr/lib/python2.7/shelve.py", line 239, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File"/usr/lib/python2.7/shelve.py", line 222, in init
import anydbm
File"/usr/lib/python2.7/anydbm.py", line 50, in
_errors.append(_mod.error)
AttributeError: 'module' object has no attribute 'error'

======================================================================

ERROR: test_create_catalog (test_catalog.TestGetCatalog)

Traceback (most recent call last):
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py", line 286, in test_create_catalog
cat = catalog.get_catalog(pardir,'c')
File"/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py", line 486, in get_catalog
sh = shelve.open(catalog_file,mode)
File"/usr/lib/python2.7/shelve.py", line 239, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File"/usr/lib/python2.7/shelve.py", line 222, in init
import anydbm
File"/usr/lib/python2.7/anydbm.py", line 50, in
_errors.append(_mod.error)
AttributeError: 'module' object has no attribute 'error'

Ran 20343 tests in 138.416s

FAILED (KNOWNFAIL=98, SKIP=1679, errors=4)


所有这些都是在weave,这是需要在其他地方使用SciPy本身。除非你是直接使用编织,你可能是好的。有可能是没有理由去使用新编制的代码无论如何。