【debug】RuntimeError: main thread is not in main loop Exception ignored in: <function Image.__del__ a

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

记录一下

猜你喜欢

转载自blog.csdn.net/AugustMe/article/details/117534414
今日推荐