'Pyinstaller - Tkinter "AppData\Local\Temp\_MEI71562\tcl" not found" Error

no matter how simple my tkinter apps are, pyinstaller continues failing on all executables.

Sadly, when I compile it via pyinstaller (i tried: --noconsole --onefile AND --noconsole --hidden-import --onefile tkinter) it gives out following error:

Traceback (most recent call last):
  File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth__tkinter.py", line 25, in <module>
FileNotFoundError: Tcl data directory "C:\Users\juana\AppData\Local\Temp\_MEI71562\tcl" not found.

What is the source of this problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source