suchen

Heim  >  Fragen und Antworten  >  Hauptteil

python2 用py2exe打包exe运行exe报错:没有访问网络的权限是什么意思?

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

setup.py文件内容

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

<code>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")] }],

    )

     

源码可以正常执行,不知道哪里打包错了,请大神指点</code>

高洛峰高洛峰2894 Tage vor1056

Antworte allen(0)Ich werde antworten

Keine Antwort
  • StornierenAntwort