我收到以下错误:
from theano.compat.python2x import OrderedDict .ImportError: No module named python2x
“theano”API文档声明没有compat模块。这是为什么?
答案 0 :(得分:2)
我相信这是为了让更高版本的python与较早的版本兼容。
如果您进行更改,
from theano.compat.python2x import OrderedDict
到
from collections import OrderedDict
应该可以。