title: Using pyinstaller to package python program and there is a "NoModuleFindError"
body: <p>I use pyinstaller to package my python program into executable program(exe).</p>
  
  <p>my program version:</p>
  
  <p>Pyinstaller :3.3.1</p>
  
  <p>Python :3.6.1
  Windows:10-10.0.16299-SP0</p>
  
  <hr>
  
  <p>I can run the data_processing_gui.py file with the command "python data_processing_gui.py" in my command-line window without any ERROR.</p>
  
  <hr>
  
  <p>I use the command to package my python program(which name is data_processing_gui.py):</p>
  
  <pre><code>pyinstaller -F -p C:\Users\fanyu\Anaconda3\Lib;C:\Users\fanyu\Anaconda3\Lib\site-packages;C:\Users\fanyu\Anaconda3\Lib\site-packages\PyQt5\Qt\bin;C:\Users\fanyu\Anaconda3\Lib\site-packages\pydicom;C:\Users\fanyu\Anaconda3\Lib\site-packages\radiomics;C:\Users\fanyu\Anaconda3\Lib\site-packages\pywt;C:\Users\fanyu\Anaconda3\Lib\site-packages\pywt\_extensions;C:\Users\fanyu\Anaconda3\Lib\site-packages\tensorflow;C:\Users\fanyu\Anaconda3\Lib\site-packages\SimpleITK;C:\Users\fanyu\Anaconda3\Lib\site-packages\PIL;C:\Users\fanyu\Anaconda3\Lib\site-packages\pandas;C:\Users\fanyu\Anaconda3\Lib\site-packages\nrrd;C:\Users\fanyu\Anaconda3\Lib\site-packages\numpy -i C:\Users\fanyu\Desktop\work\package\image\doctor.ico data_processing_gui.py
  </code></pre>
  
  <hr>
  
  <p>There is no ERROR when I run code above in windows' command-line window,but when I run the target program(data_progressing_gui.exe),there is a <code>ModuleNotFindError</code> ,the error infomation is:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File "data_processing_gui.py",
    line 12, in    File
    "c:\users\fanyu\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py",
    line 631, in exec_module
        exec(bytecode, module.<strong>dict</strong>)   File "site-packages\radiomics__init__.py", line 15, in    File
    "c:\users\fanyu\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py",
    line 631, in exec_module
        exec(bytecode, module.<strong>dict</strong>)   File "site-packages\radiomics\imageoperations.py", line 6, in <br>
    File
    "c:\users\fanyu\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py",
    line 631, in exec_module
        exec(bytecode, module.<strong>dict</strong>)   File "site-packages\pywt__init__.py", line 17, in    File
    "c:\users\fanyu\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py",
    line 631, in exec_module
        exec(bytecode, module.<strong>dict</strong>)   File "site-packages\pywt_functions.py", line 17, in    File
    "c:\users\fanyu\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py",
    line 714, in load_module
        module = loader.load_module(fullname)   File "pywt/_extensions/_pywt.pyx", line 1, in init pywt._extensions._pywt
    (pywt_extensions_pywt.c:31281) ModuleNotFoundError: No module named
    'pywt._extensions._cwt' [7564] Failed to execute script
    data_processing_gui</p>
  </blockquote>
  
  <p>It seems like the program can't find the specify package path(pywt._extensions._cwt),however,I've added the path in the pyinstaller's parameter list.</p>
  
  <p>At first,I think maybe there is something wrong with my pyinstaller,so I've tried to reinstall it. Then I write a simple python program to test it,it runs correctly.</p>
  
  <p>I've tried a lot but just can't solve it,so I am here to ask for help,I will appreciate it if anyone can give any advice.</p>