Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'tensorflow.models' #25

Open
laoma023012 opened this issue Aug 16, 2017 · 3 comments
Open

ModuleNotFoundError: No module named 'tensorflow.models' #25

laoma023012 opened this issue Aug 16, 2017 · 3 comments

Comments

@laoma023012
Copy link

How can I fix this error while running python train.py

Traceback (most recent call last):
File "train.py", line 8, in
from tf_seq2seq_chatbot.lib.train import train
File "/home/laoma/nlp_Hujiang/tf_seq2seq_chatbot/tf_seq2seq_chatbot/lib/train.py", line 14, in
from tf_seq2seq_chatbot.lib.seq2seq_model_utils import create_model
File "/home/laoma/nlp_Hujiang/tf_seq2seq_chatbot/tf_seq2seq_chatbot/lib/seq2seq_model_utils.py", line 11, in
from tf_seq2seq_chatbot.lib import seq2seq_model
File "/home/laoma/nlp_Hujiang/tf_seq2seq_chatbot/tf_seq2seq_chatbot/lib/seq2seq_model.py", line 28, in
from tensorflow.models.rnn.translate import data_utils
ModuleNotFoundError: No module named 'tensorflow.models'

@halflkaka
Copy link

Roll back to the version 0.12 by using sudo pip install tensorflow==0.12 and it works. The reason is that for the version 1.x, the reference names have been changed.

@saipavanmeruga
Copy link

any suggestions for the changed reference names for tensorflow 2.x

@saipavanmeruga
Copy link

there is a data_utils file in repository, import that where ever required, hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants