新手求解 用pycharm运行爱心代码
不懂这个是什么意思
Traceback (most recent call last):
File "D:\demo\pythonProject\demo01.py", line 127, in <module>
root=Tk()
File "C:\Program Files\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:/Program Files/Python313/lib/tcl8.6} D:/demo/pythonProject/.venv/lib/tcl8.6 D:/demo/pythonProject/lib/tcl8.6 D:/demo/pythonProject/.venv/library D:/demo/pythonProject/library D:/demo/pythonProject/tcl8.6.14/library D:/demo/tcl8.6.14/library
This probably means that Tcl wasn't installed properly.