2017-08-19 50 views

回答

0

没有什么能够很好地适用于python 3.6,所以使用python 3.5。当我将python脚本转换为exe时,我使用PyInstaller3.2.1 https://pypi.python.org/pypi/PyInstaller/3.2.1 ,它工作正常。确保你的脚本已经在pyinstaller文件夹中,然后运行命令python pyinstaller.py scriptName.py

+0

pyinstaller并没有我的情况下工作。看到我的帖子https://stackoverflow.com/questions/45750676/build-a-exe-for-windows-from-a-python-3-script-importing-pyqtgraph-and-opening。它似乎pyinstaller显示矛盾的属性:一方面它不与python 3.6兼容;另一方面像我的'收益'问题的一些语法行为似乎与异步发电机,不与python 3.5兼容-... –

0

cx-freeze与Python 3.6一起工作 - 至少我已经用这个组合创建了二进制文件。

下面是如何使用它的说明:https://regilanj.wordpress.com/2017/06/07/py-to-exe-in-python-3-6-1/

+0

cx-freeze在我的情况下不起作用,请参阅我的帖子https:// stackoverflow.com/questions/45734926/build-a-exe-for-windows-from-a-python-3-script-importing-pyqtgraph-and-opening –

相关问题