我試圖從一個Python控制檯,而不是通過巴澤勒-build運行Tensorflow的translate.py,但我在這兩條線得到一個錯誤:Tensorflow translate.py導入錯誤:沒有命名的模塊轉換
from tensorflow.models.rnn.translate import data_utils
from tensorflow.models.rnn.translate import seq2seq_model
ImportError: No module named translate
我檢查了文件夾,看到「init .py」文件存在,但python似乎認爲沒有像翻譯這樣的模塊。 我該如何解決這個問題?