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.keras' #34

Open
harshdaveee opened this issue Oct 26, 2021 · 1 comment
Open

ModuleNotFoundError: No module named 'tensorflow.keras' #34

harshdaveee opened this issue Oct 26, 2021 · 1 comment

Comments

@harshdaveee
Copy link

harshdaveee commented Oct 26, 2021

from yolov3_tf2.models import YoloV3, YoloV3Tiny
File "E:\OD-2\Object-Detection-API\yolov3_tf2\models.py", line 5, in
from tensorflow.keras import Model
ModuleNotFoundError: No module named 'tensorflow.keras'

@prabalp
Copy link

prabalp commented Oct 28, 2021

This is because

  1. you are using venv different from python 3.7(if using pip, make 3.7 virtual environment)
  2. The virtual environment is not activated (where all the modules are installed ), uses conda activate

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

2 participants