ImportError:没有名为absl.testing的模块

Ped*_*oSG 4 python object-detection tensorflow object-detection-api

我一直在尝试运行Object detection API,以测试安装是否有效:

python object_detection/builders/model_builder_test.py
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

    File "object_detection/builders/model_builder_test.py", line 18, in <module>
    from absl.testing import parameterized
ImportError: No module named absl.testing
Run Code Online (Sandbox Code Playgroud)

我无法在任何地方找到解决方案.已经尝试pip install absl-pypip3 install absl-py,但没有成功.希望你能帮助我.

Ped*_*oSG 10

通过使用python3 object_detection/builders/model_builder_test.py 而不是使用它python object_detection/builders/model_builder_test.py.忘了我使用TF for python3.