0

I would like to convert a .py file to an .exe. I am using Python 3.6. I already tried py2exe and PyInstaller but they don't seem to work properly with Python 3.6.

Here is the traceback from PyInstaller.

tom
  • 21,844
  • 6
  • 43
  • 36
Juan Naym
  • 29
  • 5

1 Answers1

1

So, let's try Pyinstaller first.

$ pyinstaller script.py --onefile

This will generate a script.spec file in the spec file you can remove the console, debug mode etc

$ pyinstaller script.py

EDIT: Py3.6 isn't supported

If this doesn't work then we can try cx_freeze,

Sakhri Houssem
  • 975
  • 2
  • 16
  • 32
Joshua Nixon
  • 1,379
  • 2
  • 12
  • 25