Isssue with import tensorflow

I am trying to run script with this libraries:
import cvlib as cv
import sys
import cv2
import os

#another code

but I got a error:
Using TensorFlow backend.
Traceback (most recent call last):
File "", line 1, in <module>
import cvlib as cv
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/cvlib/", line 8, in <module>
from .gender_detection import detect_gender
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/cvlib/", line 3, in <module>
from keras.utils import get_file
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/keras/", line 3, in <module>
from . import utils
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/keras/utils/", line 6, in <module>
from . import conv_utils
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/keras/utils/", line 9, in <module>
from .. import backend as K
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/keras/backend/", line 1, in <module>
from .load_backend import epsilon
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/keras/backend/", line 90, in <module>
from .tensorflow_backend import *
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/keras/backend/", line 5, in <module>
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'

Any idea?
Thanks in advance.

You are viewing a single comment. View All
Answered by Vandesm14 [earned 5 cycles]
View Answer