title: Pyinstaller: Can't find a usable init.tcl in the following directories This probably means that tcl wasnt installed properly
body: <p>I am working on my tkinter project. And when i try to compile it using pyinstaller i get the error shown in picture. This wasnt happening before reseting my pc:</p>
  <p><a href="https://i.stack.imgur.com/VO6st.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VO6st.png" alt="error image" /></a></p>
  <p>The code that im trying to compile:</p>
  <pre><code>import tkinter as tk
  from tkinter import filedialog, Text, DISABLED, NORMAL, ttk
  from PIL import ImageTk, Image
  import pyglet,tkinter
  pyglet.font.add_file('font.ttf')
  arkaplan = &quot;#000000&quot;
  koyugri = &quot;#1c1c1c&quot;
  
  root = tk.Tk()
  root.title(f&quot;AcemTube Başlatılıyor...&quot;)
  root.resizable(False, False)
  yer = str(root.winfo_screenwidth()/2 - 350/2).split(&quot;.&quot;)[0]
  yer1 = str(root.winfo_screenheight()/2 - 90/2).split(&quot;.&quot;)[0]
  root.geometry(f&quot;350x90+{yer}+{yer1}&quot;)
  root.overrideredirect(1)
  canvas = tk.Canvas(root, height=90, width=350, background=&quot;#23272a&quot;)
  canvas.pack()
  #baslikutu = tk.Frame(root, bg=&quot;#2082b2&quot;)
  #baslikutu.place(relwidth=1, relheight=0.1)
  
  baslikutu1 = tk.Frame(root, bg=arkaplan)
  baslikutu1.place(relwidth=1, relheight=1)
  baslik = tk.Label(baslikutu1, text=f&quot;AcemTube&quot;, bg=arkaplan, fg=&quot;white&quot;)
  baslik.config(font=(&quot;Montserrat ExtraBold&quot;, &quot;28&quot;, &quot;bold italic&quot;))
  baslik.place(relwidth=0.65, relheight=0.75, relx=0.299)
  frm= tk.Frame()
  logo = ImageTk.PhotoImage(Image.open(&quot;acemtubes.png&quot;))
  rlbl = tk.Label(baslikutu1, image=logo, bg=arkaplan ,fg=&quot;#23272a&quot;)
  rlbl.place(relwidth=0.31, relheight=0.78)
  s = ttk.Style()
  s.theme_use(&quot;clam&quot;)
  s.configure(&quot;red.Horizontal.TProgressbar&quot;, foreground='#23272a', background='#2082b2', troughcolor=koyugri, bordercolor=&quot;#2082b2&quot;, darkcolor=&quot;#2082b2&quot;, lightcolor=&quot;#2082b2&quot;)
  prgs = ttk.Progressbar(baslikutu1, style=&quot;red.Horizontal.TProgressbar&quot;, orient=tk.HORIZONTAL,    length=350, mode=&quot;determinate&quot;)
  prgs.place(rely=0.791)
  prgs.start(24)
  
  root.mainloop()`
  </code></pre>
  <p>Thanks for reading. Im a noobie so please explain me how to solve this issue. Thanks :)</p>
  <p>EDIT: I forgot to say that init.tcl exists in this folder. <a href="https://i.stack.imgur.com/n36Am.png" rel="nofollow noreferrer">Image Of The Tcl Folder</a></p>