easy_seq2seq
easy_seq2seq copied to clipboard
Problem No module named models.rnn.translate
python execute.py
Traceback (most recent call last):
File "execute.py", line 31, in
How can i solve it?
This is my version of tensorflow: Name: tensorflow Version: 1.1.0 Summary: TensorFlow helps the tensors flow Home-page: http://tensorflow.org/ Author: Google Inc. Author-email: [email protected] License: Apache 2.0 Location: /usr/local/lib/python2.7/dist-packages Requires: mock, numpy, wheel, six, protobuf, werkzeug
Python Version Python 2.7.12
Many aspects of the Python TensorFlow API changed from version 0.n to 1.0. You should install tensorflow 0.12. Refer : https://www.tensorflow.org/versions/r0.12/get_started/os_setup
Hi! Replace from tensorflow.models.rnn.translate import data_utils with import data_utils!
create tensorflow folder from home mkdir ~/tensorflow clone the https://github.com/tensorflow/models.git from tensorflow folder add below line to seq2seq_model.py import sys sys.path.append('~/tensorflow/models/tutorials/rnn/translate') it is working
I solved the same problem according to @ManivannanMurugavel , thanks!