0

当我试图在make_cifar100_whitened.py里面跑时,Pylearn2/scripts/datasets我得到:

G:\pylearn2-master\pylearn2\scripts\datasets>make_cifar100_whitened.py
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
Traceback (most recent call last):
  File "G:\pylearn2-master\pylearn2\scripts\datasets\make_cifar100_whitened.py", line 10, in <module>
    from pylearn2.utils import string
ImportError: cannot import name string

这里有什么问题?

4

1 回答 1

0

看来我找到了解决方法。实际的进口需要是

from pylearn2.utils import string_utils as string
于 2017-02-14T19:05:19.403 回答