ModuleNotFoundError: No module named '_tkinter'

Hi there! I’m trying to deploy my Flask app, but I’m running into an error that keeps preventing me from doing so.

Apr 24 02:43:06 PM File “/opt/render/project/python/Python-3.9.13/lib/python3.9/turtle.py”, line 107, in
Apr 24 02:43:06 PM import tkinter as TK
Apr 24 02:43:06 PM File “/opt/render/project/python/Python-3.9.13/lib/python3.9/tkinter/init.py”, line 37, in
Apr 24 02:43:06 PM import _tkinter # If this fails your Python may not be configured for Tk
Apr 24 02:43:06 PM ModuleNotFoundError: No module named ‘_tkinter’

Hey,

You won’t be able to run tkinter properly on Render as we don’t support spinning up GUIs.

Regards.
Jérémy, Render Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.