pyinstaller – how to build .exe for python 3.5+, 3.6 if possible?

pyinstaller – how to build .exe for python 3.5+, 3.6 if possible?

Pyinstaller Works with Python 3.5 and it is working even for packages like tensor-flow, scipy , etc (The packages I worked with)

py -3.5 pip install pyinstaller

then go the C:UsersuserAppDataLocalProgramsPythonPython35Scripts
and run the command

pyinstaller <code .py file along with directory> --onefile

–onefile : is for compressing the build and get a single file as output

I would suggest pyinstaller see http://www.pyinstaller.org/

The pyinstaller already supports 3.5

The development version supports 3.6

pyinstaller – how to build .exe for python 3.5+, 3.6 if possible?

It is better to use spec file to import other hidden libraries. I listed all Sklearn libraries and add them to spec file as a hiddenimports, you can add libraries you used in your project.

Leave a Reply

Your email address will not be published. Required fields are marked *