title: build python script to single exe with pyinstaller
body: <p>I am getting below errors :  script name = <code>prepareIncidentCountMail.py</code></p>
  
  <pre><code>Traceback (most recent call last):
    File "Alexa\prepareIncidentCountMail.py", line 52, in &lt;module&gt;
    File "site-packages\pandas\core\frame.py", line 683, in style
    File "&lt;frozen importlib._bootstrap&gt;", line 971, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 955, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 665, in _load_unlocked
    File "c:\users\avikumar\documents\learn\alexa\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
      exec(bytecode, module.__dict__)
    File "site-packages\pandas\io\formats\style.py", line 50, in &lt;module&gt;
    File "site-packages\pandas\io\formats\style.py", line 118, in Styler
    File "site-packages\jinja2\environment.py", line 830, in get_template
    File "site-packages\jinja2\environment.py", line 804, in _load_template
    File "site-packages\jinja2\loaders.py", line 113, in load
    File "site-packages\jinja2\loaders.py", line 234, in get_source
    File "site-packages\pkg_resources\__init__.py", line 1459, in has_resource
    File "site-packages\pkg_resources\__init__.py", line 1509, in _has
  NotImplementedError: Can't perform this operation for unregistered loader type
  [10536] Failed to execute script prepareIncidentCountMail
  </code></pre>
  
  <p>I am using pandas style with the help of link : <a href="https://stackoverflow.com/questions/49745256/change-color-of-complete-row-in-data-frame-in-pandas/49747371#49747371">Change color of complete row in data frame in pandas</a></p>
  
  <p>I see style is using jinja2 causing the above error. Is there any way to hook this error or any other tool to convert python script into single executable.</p>