Home  >  Q&A  >  body text

python - keras安装

keras安装好了,tensorflow也安装好了
但运行的时候出现这个问题,有人以前遇到过吗?能帮忙解决一下吗?谢谢了

迷茫迷茫2717 days ago649

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 10:33:47

    This is a problem with keras, modify keras/backend/tensorflow_backend.py

    try:
        import tf.contrib.ctc as tfctc
    except ImportError:
        import tf.core.util.ctc as tfctc

    changed to

    try:
        import tf.contrib.ctc as tfctc
    except ImportError:
        import tf.core.util.ctc as tfctc
    finally:
        tf.ctc = tfctc
       del tfctc

    via https://github.com/fchollet/k...

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:33:47

    Please use anaconda

    reply
    0
  • Cancelreply