2012-04-08 66 views

回答

0
  1. 将你的脚本放在一个新的文件夹中。
  2. 运行第一脚本(configure.py如果没有记错)
  3. (从内存中再次make.py yourfolder\yourscript.py)运行第二脚本
  4. 运行最后一个脚本(build.py yourfolder\yourscript.spec

,你应该有一个exe了。 祝你好运。

0

以下是我用来做一个EXE。

使用python ../pysinstaller-1.5/Configure.py

蟒蛇../pyinstaller-1.5/MakeSpec.py -F --noconsole -n名的最-应用路径到您的主的.py文件

蟒蛇../pyinstaller-1.5/Build.py路径到名称的最app.spec文件制作

注:如果您需要运行配置只有一次全新安装后才能使用。

2

我建议您使用标准的PyInstaller脚本pyinstaller.py,它将所有其他脚本合并到一个界面中。

只需键入:

python pyinstaller.py your_script.py

和PyInstaller将创建一个build和dist文件夹,并把你的exe文件在dist文件夹中。

0

如果你有pyinstaller集PATH变量,像我一样,你需要做的是:

pyinstaller -F

,它会自动生成一切。

相关问题