title: PyInstaller error when running exe with TensorFlow2 and Tkinter libraries
body: <p>I have a small application on Tkinter that uses the TensorFlow2 library. I'm running <code>pyinstaller main2.py</code> and the project is successfully built, but when you run it through the console, you get this:</p>
  
  <pre><code>C:\Users\pikro\PycharmProjects\NeuralStyleTransfer\dist\main2&gt;main2.exe
  2020-05-24 15:48:27.175935: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
  2020-05-24 15:48:27.180194: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
  c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py:489: MatplotlibDeprecationWarning:
  The MATPLOTLIBDATA environment variable was deprecated in Matplotlib 3.1 and will be removed in 3.3.
    exec(bytecode, module.__dict__)
  Traceback (most recent call last):
    File "main2.py", line 2, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\__init__.py", line 48, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\_api\v2\compat\__init__.py", line 39, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\_api\v2\compat\v1\__init__.py", line 34, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\_api\v2\compat\v1\compat\__init__.py", line 39, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\_api\v2\compat\v1\compat\v1\__init__.py", line 51, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\_api\v2\compat\v1\lite\__init__.py", line 11, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\__init__.py", line 10, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\nn\__init__.py", line 10, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\lite\python\lite.py", line 35, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
    File "c:\users\pikro\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\tensorflow\lite\experimental\microfrontend\python\ops\audio_microfrontend_op.py", line 30, in &lt;module&gt;
    File "site-packages\tensorflow\python\framework\load_library.py", line 58, in load_op_library
  tensorflow.python.framework.errors_impl.NotFoundError: C:\Users\pikro\PycharmProjects\NeuralStyleTransfer\dist\main2\tensorflow\lite\experimental\microfrontend\python\ops\_audio_microfrontend_op.so not found
  [9892] Failed to execute script main2
  </code></pre>
  
  <p>How can I fix this error?</p>
  
  <p>My imports:</p>
  
  <pre><code>from tkinter import *
  import tensorflow as tf
  import tensorflow_hub as hub
  import numpy as np
  import PIL.Image
  </code></pre>