ModuleNotFoundError: No module named ‘tensorflow’, you know why? [closed]

this is the full code that i want to execute:

import cv2
import numpy as np
import matplotlib.pyplot as plt
import cvlib as cv
from cvlib.object_detection import draw_bbox
from numpy.lib.polynomial import poly

image = cv2.imread("cars.jpg")
box, label, count = cv.detect_common_objects(image)
output = draw_bbox(image, box, label, count)
print("Number of cars in this image are " +str(label.count('car')))

now i have that problem:

Traceback (most recent call last): File "c:\Users\User\Desktop\import", line 4, in import cvlib as cv File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\", line 8, in from .gender_detection import detect_gender File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cvlib\", line 3, in from tensorflow.keras.utils import get_file File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\", line 41, in from import module_util as _module_util ModuleNotFoundError: No module named 'tensorflow.python'

Read more here:

Content Attribution

This content was originally published by oran ben david at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: