在 OSX El CApitan 10.11.6 上,我已经安装了 theano 和 TensorFlow。但从下面的跟踪中可以看出,keras 安装并不顺利。我看过这个报道关于 github 问题 https://github.com/tensorflow/tensorflow/issues/4510但没有解决方案,只有一个建议在此处发布。
>>>import theano
>>>
>>> import tensorflow
>>>
>>> import keras
File "/Users/petercotton/anaconda2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 6, in <module>
import tensorflow.contrib.ctc as ctc
ImportError: No module named contrib.ctc`
建议表示赞赏。
这是 Keras 的问题,而不是 TensorFlow 的问题已知问题 https://github.com/fchollet/keras/pull/3436#issuecomment-240230596。
提到了解决方法here https://github.com/fchollet/keras/pull/3436#issuecomment-241169473但这意味着您必须修改 Keras 代码(keras/backend/tensorflow_backend.py
).
幸运的是,这个问题似乎是fixed https://github.com/fchollet/keras/pull/3827在 Keras 的主分支中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)