问题
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.
回答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,
来源:https://stackoverflow.com/questions/45535920/converting-python-3-6-script-to-exe