py2exe 打包
来源:互联网 发布:libuv编程 编辑:程序博客网 时间:2024/05/22 15:57
from distutils.core import setup
import py2exe
options = {"py2exe":
{ "compressed": 1,
"optimize": 2,
"bundle_files": 1 # <span style="color: rgb(255, 128, 0); line-height: 15px; white-space: pre; background-color: rgb(253, 253, 253); ">所有文件打包成一个exe文件</span>
}
}
setup(
version = "1.0.0",
description = "description for your exe",
name = "hello",
options = options,
zipfile = None, # 不生成zip库文件
console = [{"script": "pyqt.py" }],
)
import py2exe
options = {"py2exe":
{ "compressed": 1,
"optimize": 2,
"bundle_files": 1 # <span style="color: rgb(255, 128, 0); line-height: 15px; white-space: pre; background-color: rgb(253, 253, 253); ">所有文件打包成一个exe文件</span>
}
}
setup(
version = "1.0.0",
description = "description for your exe",
name = "hello",
options = options,
zipfile = None, # 不生成zip库文件
console = [{"script": "pyqt.py" }],
)
2.win窗口
from distutils.core import setup
import py2exe
# Set options
options ={ 'py2exe':
{
'dll_excludes':['w9xpopen.exe'] #This file is for win9x platform
}
}
# Setup
setup ( options = options,
windows = [{
'script': 'test.py'
}]
)
import py2exe
# Set options
options ={ 'py2exe':
{
'dll_excludes':['w9xpopen.exe'] #This file is for win9x platform
}
}
# Setup
setup ( options = options,
windows = [{
'script': 'test.py'
}]
)
python setup.py py2exe
0 0
- py2exe打包
- py2exe打包
- py2exe打包
- py2exe打包
- py2exe 打包
- py2exe打包问题
- py2exe打包一个文件
- Py2exe打包成exe
- python--py2exe打包方法
- py2exe打包python脚本
- py2exe打包出错
- py2exe打包pyqt程序
- py2exe打包python程序
- py2exe打包python程序
- py2exe打包matplotlib
- py2exe打包Python程序
- 使用py2exe打包发布
- py2exe打包步骤
- 禁止通过ip直接访问网站来防止恶意解析-(apache,nginx,iis)
- 最简单动态设置不同cell高度的方法。
- U-boot移植之U-boot概述
- $.getJSON报错Uncaught TypeError: Cannot read property 'id' of undefined解决方法
- 单例模式与多线程
- py2exe 打包
- 基数排序的java实现
- Android UI Libs之shimmer-android
- Android Fragment完全解析,关于碎片你所需知道的一切
- MaterialDesign设计(上)
- Spring+Mybatis集成,出现java.lang.ClassNotFoundException: ${jdbc.driverClass}
- hdu 3535 混合背包(一组中最少取一个,最多取一个,可以任意取)
- $ git log打印提交的日志(show commit logs)后的退出方法
- js分页