美文网首页
WinPython下使用PyInstaller将python程序

WinPython下使用PyInstaller将python程序

作者: Fliverse | 来源:发表于2017-07-26 10:10 被阅读0次

下载安装PyInstaller

下载链接,下载之后,解压zip压缩包,使用Spyder的Command Prompt在该目录下安装。

python setup.py install

使用PyInstaller

将需要转换的.py文件复制到PyInstaller的解压目录下,在该目录下使用Command Prompt输入指令:

python pyinstaller.py -F -w -i pt.ico SmallTools.py

其中,
-F是编译成单一文件,否则会编译出很多库
-w是不显示命令行直接显示窗口
-i是使用图标

其他参数自行百度可得。

如果转换过程中出错,可以到github获得最新的程序进行更新。

相关文章

网友评论

      本文标题:WinPython下使用PyInstaller将python程序

      本文链接:https://www.haomeiwen.com/subject/xnsnkxtx.html