在liunx中测试nose软件包输入 nosetests -v sknn.tests出现错误

/usr/local/lib/python2.7/dist-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
Failure: ImportError (cannot import name downsample) ... ERROR

ERROR: Failure: ImportError (cannot import name downsample)

Traceback (most recent call last):
File "/tmp/pip-build-M9Ng2M/nose/nose/loader.py", line 418, in loadTestsFromName
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/tianxiao/scikit-neuralnetwork/sknn/tests/__init__.py", line 1, in
from sknn.backend import lasagne
File "/home/tianxiao/scikit-neuralnetwork/sknn/backend/lasagne/__init__.py", line 5, in
from .mlp import MultiLayerPerceptronBackend
File "/home/tianxiao/scikit-neuralnetwork/sknn/backend/lasagne/mlp.py", line 25, in
import lasagne.layers
File "/usr/local/lib/python2.7/dist-packages/lasagne/__init__.py", line 19, in
from . import layers
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/__init__.py", line 7, in
from .pool import *
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/pool.py", line 6, in
from theano.tensor.signal import downsample
ImportError: cannot import name downsample


Ran 1 test in 0.001s

FAILED (errors=1)

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问