Open PaulAtredis opened 2 years ago
OMG
run:
pip install tensorflow
I have the same issue
ModuleNotFoundError Traceback (most recent call last)
Input In [58], in <cell line: 1>()
----> 1 import tensorflow as tf
2 from object_detection.utils import config_util
3 from object_detection.protos import pipeline_pb2
ModuleNotFoundError: No module named 'tensorflow'
Tensorflow is installed
Name: tensorflow Version: 2.8.0 Summary: TensorFlow is an open source machine learning framework for everyone. Home-page: https://www.tensorflow.org/ Author: Google Inc. Author-email: packages@tensorflow.org License: Apache 2.0 Location: d:\github\tfodcourse\tfod\lib\site-packages\tensorflow-2.8.0-py3.9-win-amd64.egg Requires: absl-py, astunparse, flatbuffers, gast, google-pasta, grpcio, h5py, keras, keras-preprocessing, libclang, numpy, opt-einsum, protobuf, setuptools, six, tensorboard, tensorflow-io-gcs-filesystem, termcolor, tf-estimator-nightly, typing-extensions, wrapt Required-by: tensorflow-object-detection-api, tensorflow-text, tf-models-official
Would appreciate any help
Hello Guys, do you run command in your Virtual environment? @PaulAtredis If not, I say: Nicholas showed it in the tutorial
@tamarziv Show please, respond from pip list
and verify your IDE work with the right virtual environment
C:\Users\user\RealTimeObjectDetection>python Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config --num_train_steps=5000 Traceback (most recent call last): File "Tensorflow/models/research/object_detection/model_main_tf2.py", line 31, in
import tensorflow.compat.v2 as tf
ModuleNotFoundError: No module named 'tensorflow'