tkinter error

سوال شده توسط:

تاریخ ثبت: ۱۴۰۳/۰۹/۳۰

بازدید: 16

پاسخ: 0

تگ: پایتون


موقع run کردن دستور برای کتابهانه tkinter اررور زیر میاد

Traceback (most recent call last):
 File "C:\Users\shervan\Desktop\python\PythonProject\.venv\main.py", line 3, in <module>
   window = Tk()
 File "C:\Users\shervan\AppData\Local\Programs\Python\Python313\Lib\tkinter\__init__.py", line 2459, in __init__
   self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
             ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: Can't find a usable init.tcl in the following directories: 
   C:/Users/shervan/AppData/Local/Programs/Python/Python313/lib/tcl8.6 C:/Users/shervan/Desktop/python/PythonProject/.venv/lib/tcl8.6 C:/Users/shervan/Desktop/python/PythonProject/lib/tcl8.6 C:/Users/shervan/Desktop/python/PythonProject/.venv/library C:/Users/shervan/Desktop/python/PythonProject/library C:/Users/shervan/Desktop/python/PythonProject/tcl8.6.14/library C:/Users/shervan/Desktop/python/tcl8.6.14/library

 

This probably means that Tcl wasn't installed properly.

برای ثبت پاسخ باید خود شوید