在项目目录下新建文件setup.py
# mysetup.py
from distutils.core import setup
import py2exe
setup(console=["hello.py"])
控制台执行
python mysetup.py py2exe
在项目目录下新建文件setup.py
# mysetup.py
from distutils.core import setup
import py2exe
setup(console=["hello.py"])
控制台执行
python mysetup.py py2exe
本文标题:python 生成 exe 文件
本文链接:https://www.haomeiwen.com/subject/gopwvxtx.html
网友评论