ImportError: No module named absl.testing
13,422
Solution 1
Got it working by using python3 object_detection/builders/model_builder_test.py
instead of python object_detection/builders/model_builder_test.py
. Forgot that I was using TF for python3.
Solution 2
First install absl-py by running command if you are using tensorflow with python3
sudo pip3 install absl-py
otherwise
sudo pip install absl-py
After that run
python3 object_detection/builders/model_builder_test.py
Cheers, You done it !!
Author by
PedroSG
Updated on June 27, 2022Comments
-
PedroSG almost 2 years
I've been trying to run the Object detection API, at the point to test if the instalation worked:
python object_detection/builders/model_builder_test.py
I got the following error:
File "object_detection/builders/model_builder_test.py", line 18, in <module> from absl.testing import parameterized ImportError: No module named absl.testing
I couldn't find a solution anywhere. Already tried
pip install absl-py
andpip3 install absl-py
but without success. Hope you could help me. -
Thomas Steinholz about 4 yearsshouldn't
pip install
with sudo