py2exe将python脚本打包成exe报错
我安装了py2exe(pipinsatllpy2exe),但是实际用的时候却报错了(用的是网上的方法),如下图,不知道是不是我的库安装错了#-*-coding:UTF-8...
我安装了py2exe(pip insatll py2exe),但是实际用的时候却报错了(用的是网上的方法),如下图,不知道是不是我的库安装错了
#-*-coding: UTF-8-*-
from distutils.core import setup
import py2exe
# Powered by ***
INCLUDES = []
options = {"py2exe" :
{"compressed" : 1,
"optimize" : 2,
"bundle_files" : 2,
"includes" : INCLUDES,
"dll_excludes": [ "MSVCP90.dll", "mswsock.dll", "powrprof.dll","w9xpopen.exe"] }}
setup(
options = options,
description = "test",
zipfile=None,
console=[{"script": "test.py", "icon_resources": [(1, "C:/Users/Administrator/Desktop/93c6ad1001e93901d3abccc473ec54e737d196bb.jpg")] }],
) 展开
#-*-coding: UTF-8-*-
from distutils.core import setup
import py2exe
# Powered by ***
INCLUDES = []
options = {"py2exe" :
{"compressed" : 1,
"optimize" : 2,
"bundle_files" : 2,
"includes" : INCLUDES,
"dll_excludes": [ "MSVCP90.dll", "mswsock.dll", "powrprof.dll","w9xpopen.exe"] }}
setup(
options = options,
description = "test",
zipfile=None,
console=[{"script": "test.py", "icon_resources": [(1, "C:/Users/Administrator/Desktop/93c6ad1001e93901d3abccc473ec54e737d196bb.jpg")] }],
) 展开
1个回答
展开全部
Python | 用Pyinstaller打包发布exe应用
http://jingyan.baidu.com/article/a378c960b47034b3282830bb.html
http://jingyan.baidu.com/article/a378c960b47034b3282830bb.html
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询