如何从Python程序制作EXE文件? [英] How can I make an EXE file from a Python program?

查看:75
本文介绍了如何从Python程序制作EXE文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了几个模块来制作适用于Python的EXE,但是我不确定自己是否做对了.

I've used several modules to make EXEs for Python, but I'm not sure if I'm doing it right.

我应该怎么做,为什么?请根据个人经验回答,并在必要时提供参考.

How should I go about this, and why? Please base your answers on personal experience, and provide references where necessary.

推荐答案

自动PY以EXE -使用从Python中使用Eel和PyInstaller构建的简单图形界面,将.py转换为.exe.

Auto PY to EXE - A .py to .exe converter using a simple graphical interface built using Eel and PyInstaller in Python.

py2exe 可能是您想要的,但仅适用于Windows.
PyInstaller 在Windows和Linux上均可使用.
Py2app 在Mac上可以使用.

py2exe is probably what you want, but it only works on Windows.
PyInstaller works on Windows and Linux.
Py2app works on the Mac.

这篇关于如何从Python程序制作EXE文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆