title: Pyinstaller exe file failed to execute script due to unhandled exception
body: <p>im trying to turn my python program into an .exe file with the command pysintaller --onefile [name], everything goes perfectly but then when i run my .exe file i get the error &quot; failed to execute script due to unhandled exception, No module name requests. I have already installed the libraries and moved my folder out of the dist file , but same thing. Can anyone help me please?(i tested my code with Visual studio it works.<a href="https://i.stack.imgur.com/Tsehh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tsehh.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/7k9uy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7k9uy.png" alt="enter image description here" /></a></p>
  <pre><code>import requests
  import tkinter 
  from cProfile import label
  from tkinter import *
  from bs4 import BeautifulSoup
  def show_data():
      link = ent.get()
      result = requests.get(link)
      soup = BeautifulSoup(result.text, 'html.parser')
      images = soup.find_all('img')
      liste = []
      for image in images:
          image = image['src']
          if &quot;https://cdn2.sorsware.com&quot; and &quot;buyuk&quot; in image:
                liste.append(image)
      txt.insert(0.0,liste)
  def delete_data():
      txt.delete(1.0,END)
  gui = Tk()
  gui.geometry(&quot;1000x500&quot;)
  gui.title(&quot;BSL&quot;)
  
  l1 = Label(gui,text=&quot;Link:&quot;)
  
  ent = Entry(gui,width=600)
  
  l1.grid(row=0)
  ent.grid(row=0,column=1)
  txt = Text(gui,width=125,wrap=WORD,font=(&quot;Arial&quot;,10))
  txt.place(x=500,y=250,anchor=CENTER)
  btn = Button(gui,text = &quot;Results&quot;,bg =&quot;black&quot;,fg=&quot;white&quot;,width=5,height=2,command=show_data)
  btn.grid(row=1)
  
  btn_delete = Button(gui,text = &quot;delete&quot;,bg =&quot;black&quot;,fg=&quot;white&quot;,width=5,height=2,command=delete_data)
  btn_delete.grid(row=2)
  gui.mainloop()
  </code></pre>