I want to generate a .exe file from a python file but when i try to use pyinstaller I get an error "Python Library not found". I'm using python 2.7.10 and I'm using virtualenv as well. Should I type the path /usr/bin/python on the pyinstaller command or maybe the python path on the virtualenv?
EDIT: errors
16769 WARNING: lib not found: api-ms-win-core-kernel32-private-l1-1-1.dll dependency of C:\Windows/system32/user32.dll
16910 WARNING: lib not found: api-ms-win-core-privateprofile-l1-1-1.dll dependency of C:\Windows/system32/user32.dll
17413 WARNING: lib not found: api-ms-win-core-privateprofile-l1-1-1.dll dependency of C:\Windows/system32/GDI32.dll
Traceback (most recent call last):
File "/home/paulo-desktop/ENV/bin/pyinstaller", line 11, in <module> sys.exit(run())
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/main.py", line 88, in run
run_build(opts, spec_file, pyi_config)
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/main.py", line 46, in run_build
PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/build.py", line 1924, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/build.py", line 1873, in build
execfile(spec)
File "/home/paulo-desktop/github/cmd3test/cmd3/pyinstaller/shell.spec", line 6, in <module>
runtime_hooks=None)
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/build.py", line 446, in __init__
self.__postinit__()
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/build.py", line 309, in __postinit__
self.assemble()
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/build.py", line 677, in assemble
self._check_python_library(binaries)
File "/home/paulo-desktop/ENV/lib/python2.7/site-packages/PyInstaller/build.py", line 727, in _check_python_library
raise IOError("Python library not found!")
IOError: Python library not found!
(ENV)
I use cygwin too and I encountered this issue as well. I re-ran the cygwin installer and just added the python installer from there. It will be there once you run the app again.