title: Using pyinstaller with pandas
body: <p>I'm attempting to use pyinstaller with pandas.  I wrote a very simple module:</p>
  
  <p>installtest.py:</p>
  
  <pre><code>import pandas
  
  print 'Hello!'
  </code></pre>
  
  <p>and then did:</p>
  
  <pre><code>pyinstaller .\installtest.py
  </code></pre>
  
  <p>Next I edited installtest.spec as explained in <a href="https://stackoverflow.com/a/32974358/1572508">this other question</a>, deleted the build and dist directories, and ran pyinstaller again on the edited spec:</p>
  
  <pre><code>pyinstaller .\installtest.spec
  </code></pre>
  
  <p>I then attempt to run the resulting exe like this:</p>
  
  <pre><code>.\dist\installtest\installtest.exe
  </code></pre>
  
  <p>However, I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "installtest.py", line 1, in &lt;module&gt;
      import pandas
    File "c:\users\admini~1\appdata\local\temp\pip-build-kuazog\pyinstaller\PyInstaller\loader\pyimod03_importers.py", lin
  e 389, in load_module
    File "site-packages\pandas\__init__.py", line 13, in &lt;module&gt;
  ImportError: C extension: hashtable not built. If you want to import pandas from the source directory, you may need to r
  un 'python setup.py build_ext --inplace' to build the C extensions first.
  Failed to execute script installtest
  </code></pre>
  
  <p>It is apparently looking at site-packages\pandas__init__.py instead of anything in the dist folder.  Perhaps that is part of the issue?  I checked the dist folder, and it has the following pandas related files:</p>
  
  <pre><code>pandas._sparse.pyd
  pandas._testing.pyd
  pandas.algos.pyd
  pandas.hashtable.pyd
  pandas.index.pyd
  pandas.json.pyd
  pandas.lib.pyd
  pandas.msgpack._packer.pyd
  pandas.msgpack._unpacker.pyd
  pandas.parser.pyd
  pandas.tslib.pyd
  </code></pre>
  
  <p>Here is some system info:</p>
  
  <ul>
  <li><p>Python 2.7.11 :: Continuum Analytics, Inc.</p></li>
  <li><p>pandas version 0.17.0</p></li>
  <li><p>pyinstaller version 3.2</p></li>
  <li><p>Using Windows server 2012 R2 and Powershell</p></li>
  </ul>
  
  <p>My question: how can I get this example working?</p>