Skip to content

missing matplotlib.pyplot when following object_detection tutorial #2724

@glc12125

Description

@glc12125

I am trying to follow the tutorial for training the pet object detector on Object_detection official tutorial

I have followed all the steps and fired a training and evaluation job to Google cloud project, but I saw errors in the streaming logs saying:

"ImportError: No module named matplotlib.pyplot" around line 24 of "/root/.local/lib/python2.7/site-packages/object_detection/utils/visualization_utils.py"

I tried to modify the setup.py file under research folder to include matplotlib as a dependency, but it introduces another issue:

"in _import_module import(name) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in raise ImportError, str(msg) + ', please install the python-tk package' ImportError: No module named _tkinter, please install the python-tk package"

I noticed that python-tk is not a pip package and can only be installed via apt-get or installed from source in the cases of GCP(without root right).

I noticed that people have similar issues but the question on stackoverflow is not answered yet.

Is there anything missing here? Any help will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions