Converting Python 3.6 script to .exe? [duplicate]

折月煮酒 提交于 2019-12-13 03:16:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!