Troubleshooting

If you get on Windows following error:

tkinter.TclError: Can't find a usable init.tcl in the following directories: C:/Python313/lib/tcl8.6 C:/lib/tcl8.6 C:/lib/tcl8.6 C:/library C:/library C:/tcl8.6.14/library C:/tcl8.6.14/library 

This probably means that Tcl wasn't installed properly.  

the solution is to set the environment variable manually:

  1. Open Control PanelSystemAdvanced system settings.

  2. Go to Environment Variables.

  3. Under System Variables, click New.

  4. Set:

    • Variable name: TCL_LIBRARY

    • Variable value: C:\Python313\tcl\tcl8.6 (adjust if your folder is different)