Import _tkinter # If this fails your Python may not be configured for Tk

I’m trying to deploy a website using Reflex but it shows an error with tkinter even when I’m not using anything related with it.

Here is the log:

File “/opt/render/project/src/Portfolio/components/title.py”, line 1, in

from turtle import width

File “/opt/render/project/python/Python-3.13.4/lib/python3.13/turtle.py”, line 101, in

import tkinter as TK

File “/opt/render/project/python/Python-3.13.4/lib/python3.13/tkinter/_init_.py”, line 38, in

import \_tkinter # If this fails your Python may not be configured for Tk

^^^^^^^^^^^^^^^

ModuleNotFoundError: No module named ‘_tkinter’

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