简体   繁体   English

python 3.5上的exe的Python脚本

[英]Python script to exe on python 3.5

What can I use to go from a python script to an exe on 3.5? 从python脚本转到3.5上的exe可以使用什么? Because both py2exe and CxFreeze only support up to 3.4. 因为py2exe和CxFreeze最多仅支持3.4。

Also, would it be possible to create an executable without a bunch of .dll's generated? 另外,是否可以在不生成.dll的情况下创建可执行文件? Because I would like to have just a single .exe to share. 因为我只想共享一个.exe。

Thank you 谢谢

Try pyinstaller. 尝试pyinstaller。 It worked for me fine with python 3.5. 它对我很好用python 3.5。

Install pyinstaller with the following command 使用以下命令安装pyinstaller

pip install pyinstaller

and build you exe with pyinstaller --onefile your_pyfile.py . 并使用pyinstaller --onefile your_pyfile.py构建exe。 --onefile option generates one file of about 6-8 megs max. --onefile选项可生成一个最大约6至8兆的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM