I am trying to bundle a short python script into a single executable. I am able to successfully run pyinstaller using
pyinstaller script.py
However, when I run the executable I get the following error. I have tried everything and nothing seems to work.
C:\Users\...\Python\dist\script>script
Traceback (most recent call last):
File "<string>", line 2, in <module>
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 <module>
"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
Here are the imports in my script:
import pandas
from simple_salesforce import Salesforce
from pandas import Series, DataFrame
import vertica_python
from StringIO import StringIO