python2 用py2exe打包exe运行exe报错:没有访问网络的权限是什么意思?
高洛峰
高洛峰 2017-04-18 10:15:07
0
0
932

打包命令
python2 setup.py py2exe -p itchat,codecs,re

setup.py文件内容

from distutils.core import setup
import py2exe

setup(console=['hello.py'])

#-*-coding: UTF-8-*-
# 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 = "机器人",  
    zipfile=None,
    console=[{"script": "park.py", "icon_resources": [(1, "logo.ico")] }],
    )
    
源码可以正常执行,不知道哪里打包错了,请大神指点
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!