安装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 <module>
    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
即可

    原文作者:sttech
    原文地址: https://www.jianshu.com/p/96ec6e972f7c
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞