Hey. So I just installed the latest version of Python (3.13) a few days ago, and I installed the latest version of PyCharm (2024.2.3). So I tried running a simple program with matlab and numpy a few days ago, but I kept getting an error and gave up on it. However, today, when I tried another very simple program with just turtle, it also didn't work and gave the same error as the previous program, and I decided to come here for help, so here is the code and error:
Code:
import turtle
window = turtle.Screen()
tortoise = turtle.Turtle()
tortoise.forward(300)
Error:
Traceback (most recent call last):
File "C:\Users<username>\PycharmProjects\ProgTestPractice\01.py", line 3, in <module>
window = turtle.Screen()
File "C:\Users<username>\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3699, in Screen
Turtle._screen = _Screen()
~~~~~~~^^
File "C:\Users<username>\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3710, in init
_Screen._root = self._root = Root()
~~~~~^^
File "C:\Users<username>AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 429, in init
TK.Tk.init(self)
~~~~~~~~~~~~~~^^^^^^
File "C:\Users<username>\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:
......(directories)......
This probably means that Tcl wasn't installed properly.