title: ImportError with Pyinstaller and Pandas
body: <p>I am trying to bundle a short python script into a single executable. I am able to successfully run pyinstaller using </p>
  
  <pre><code>pyinstaller script.py
  </code></pre>
  
  <p>However, when I run the executable I get the following error. I have tried everything and nothing seems to work.</p>
  
  <pre><code>C:\Users\...\Python\dist\script&gt;script
  Traceback (most recent call last):
    File "&lt;string&gt;", line 2, in &lt;module&gt;
    File "c:\users\user\appdata\local\temp\pip-build-0pjuke\pyinstaller\PyInst
  aller\loader\pyimod03_importers.py", line 363, in load_module
    File "c:\python27\lib\site-packages\pandas\__init__.py", line 13, in &lt;module&gt;
      "extensions first.".format(module))
  ImportError: C extension: lib not built. If you want to import pandas from the s
  ource directory, you may need to run 'python setup.py build_ext --inplace' to bu
  ild the C extensions first.
  script returned -1
  </code></pre>
  
  <p>Here are the imports in my script:</p>
  
  <pre><code>import pandas
  from simple_salesforce import Salesforce
  from pandas import Series, DataFrame
  import vertica_python
  from StringIO import StringIO
  </code></pre>