title: pyinstaller ImportError: C extension: No module named np_datetime not built
body: <p>I am running a virtual environment with Python 2.7 for my program. 
  There seems to be a problem after creating the executable file on windows.
  I ran <strong>venv/Scripts/pyinstaller.exe -F main.py</strong>
  everything seems fine. But when i click on the created executable <strong>main.exe</strong>.
  There is an error.</p>
  
  <p><strong>Tried and tested</strong></p>
  
  <ol>
  <li>I have re-installed of pandas and pyinstaller</li>
  <li>Implemented the hook-pandas.py to the hooks folder in the environment.
  <a href="https://stackoverflow.com/questions/47318119/no-module-named-pandas-libs-tslibs-timedeltas-in-pyinstaller">hook-pandas</a></li>
  <li>Ensured the environment is activated.</li>
  <li>Checked that the program is running fine before building executable. </li>
  <li>Re-created the environment.</li>
  </ol>
  
  <p>Yet after all that, I am prompted with this issue [see Importerror] when I run the executable file.</p>
  
  <p><a href="https://i.stack.imgur.com/P9AND.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P9AND.png" alt="enter image description here"></a></p>
  
  <p>It is an extreme pain to debug this because the command prompt displaying the error will not pause but close almost immediately.</p>
  
  <p><a href="https://stackoverflow.com/questions/50393103/pyinstaller-not-finding-pandas-hook">Similar issues</a></p>
  
  <p><strong>Looking for Suggestions</strong>
  I am hoping for suggestions to troubleshoot Pyinstaller. Any resources to read up on would be nice.
  Usually, I have no trouble with python as Pycharm has several handy debugging tools that will help me identify the problem</p>