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

ImportError: No module named 'tensorflow.models' #9076

Closed
andyliaw opened this issue Apr 9, 2017 · 8 comments
Closed

ImportError: No module named 'tensorflow.models' #9076

andyliaw opened this issue Apr 9, 2017 · 8 comments

Comments

@andyliaw
Copy link

andyliaw commented Apr 9, 2017

NOTE: Issues that are not bugs or feature requests will be closed. Please ask usage questions on StackOverflow.

You must complete this information or else your issue will be closed

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow)?: yes
  • TensorFlow installed from (source or binary)?: binary (anaconda)
  • TensorFlow version: 1.0.1
  • Bazel version (if compiling from source):
  • CUDA/cuDNN version: 8.0
  • GPU Model and Memory: GTX 1080 8GB
  • Exact command to reproduce: import tensorflow.models

Describe the problem clearly

$ python
Python 3.5.3 |Continuum Analytics, Inc.| (default, Mar 6 2017, 11:58:13)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow.models
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'tensorflow.models'

Source Code / Logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full-traceback. Large logs and files should be attached. Try to reproducible test-case code the bare-minimum necessary to generate the problem

@asimshankar
Copy link
Contributor

There is no tensorflow.models module.

Perhaps you're looking for the models github repository? (https://github.com/tensorflow/models)

@kiranvarghesev
Copy link

from tensorflow.models.rnn.translate import data_utils

ImportError: No module named 'tensorflow.models'

@codeLiudehua
Copy link

how solve?

@am-firnas
Copy link

same error here as well :(

@MumMumMum
Copy link

You need to build the object_detection api usind setup.py build and setup.py install First

@KarimElshaweish
Copy link

write
from tensorflow.python.keras._impl.keras.utils import data_utils

@hyperobjects
Copy link

write
from tensorflow.python.keras._impl.keras.utils import data_utils

I tried this and received this error:
"ModuleNotFoundError: No module named 'tensorflow.python.keras._impl'"

@958smsm
Copy link

958smsm commented Jan 26, 2020

write
from tensorflow.python.keras._impl.keras.utils import data_utils

I tried this and received this error:
"ModuleNotFoundError: No module named 'tensorflow.python.keras._impl'"

write
from tensorflow.python.keras.utils import data_utils

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

9 participants