Hello, When I use code in usage, there is a wrong:ModuleNotFoundError: No module named 'tensorflow.python.tools'
I have installed requirement
This is my code
from nsfw_detector import predict
model = predict.load_model("./nvme/renzhifei/nfsw/model/mobilenetv2.h5")
Traceback (most recent call last):
File "/home/qa-caif-cicd/renzhifei/nsfw_model/demo.py", line 1, in
from nsfw_detector import predict
File "/home/qa-caif-cicd/renzhifei/nsfw_model/nsfw_detector/predict.py", line 9, in
import tensorflow as tf
File "/home/qa-caif-cicd/anaconda3/envs/rzfTorch/lib/python3.10/site-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
ModuleNotFoundError: No module named 'tensorflow.python.tools'
Here is my envs:
packages in environment at /home/qa-caif-cicd/anaconda3/envs/rzfTorch:
Hello, When I use code in usage, there is a wrong:ModuleNotFoundError: No module named 'tensorflow.python.tools' I have installed requirement This is my code
Here is error:
Here is my envs: