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)
plt.imshow(output)
plt.show()
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 cv2.py", 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\cvlib_init_.py", 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\gender_detection.py", 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\tensorflow_init_.py", line 41, in from tensorflow.python.tools import module_util as _module_util ModuleNotFoundError: No module named 'tensorflow.python'



Read more here: https://stackoverflow.com/questions/67924140/modulenotfounderror-no-module-named-tensorflow-you-know-why

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: