安装Theano出现“No module named ‘theano.compat.six’”

安装pylean2时,当执行python setup.py build后出现:

 python setup.py build
Traceback (most recent call last):
  File "setup.py", line 8, in 
    from theano.compat.six.moves import input
ModuleNotFoundError: No module named 'theano.compat.six'

解决办法修改setup.py 文件
from theano.compat.six.moves import input 改为
from six.moves import input
即可

你可能感兴趣的:(安装Theano出现“No module named ‘theano.compat.six’”)