RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.del at 0x7f5768288940>
Traceback (most recent call last):
File “/home/ubuntu/anaconda3/envs/torch17/lib/python3.9/tkinter/init.py”, line 4015, in del
self.tk.call(‘image’, ‘delete’, self.name)
RuntimeError: main thread is not in main loop
Tcl_AsyncDelete: async handler deleted by the wrong thread
Aborted (core dumped)
这种错误是matplotlib版本不匹配的问题
pip install -U matplotlib
记录一下