第一步:需要使用一个第三方包pyinstaller
安装这个包的命令是:pip install pyinstaller
查看是否安装过这个包,使用pip list
第二步:pyinstaller -F 路径+文件名
输入:pyinstaller -F E:\test\test.py


另外,如果是需要特定的logo的话,找.ico图
执行pyinstaller -F -i E:\test\Test.icoE:\test\Test.py


第一步:需要使用一个第三方包pyinstaller
安装这个包的命令是:pip install pyinstaller
查看是否安装过这个包,使用pip list
第二步:pyinstaller -F 路径+文件名
输入:pyinstaller -F E:\test\test.py
另外,如果是需要特定的logo的话,找.ico图
执行pyinstaller -F -i E:\test\Test.icoE:\test\Test.py
本文标题:如何将Python程序打包成window系统下可执行的exe?
本文链接:https://www.haomeiwen.com/subject/xynajqtx.html
网友评论