37,720
社区成员
发帖
与我相关
我的任务
分享
from distutils.core import setup
import py2exe
setup(console=["killexe.py"])
import os
os.system("taskkill /IM SogouCloud.exe /F")
print("complete")
E:\Python>python setup.py py2exe
running py2exe
Traceback (most recent call last):
File "setup.py", line 3, in <module>
setup(console=["killexe.py"])
File "C:\Program Files\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Program Files\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\distutils_buildexe.py", line 188, in run
self._run()
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\distutils_buildexe.py", line 267, in _run
builder.analyze()
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\runtime.py", line 160, in analyze
self.mf.import_hook(modname)
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\mf3.py", line 120, in import_hook
module = self._gcd_import(name)
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\mf3.py", line 274, in _gcd_import
return self._find_and_load(name)
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\mf3.py", line 357, in _find_and_load
self._scan_code(module.__code__, module)
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\mf3.py", line 388, in _scan_code
for what, args in self._scan_opcodes(code):
File "C:\Users\nasri.yang\AppData\Roaming\Python\Python37\site-packages\py2exe\mf3.py", line 417, in _scan_opcodes
yield "store", (names[oparg],)
IndexError: tuple index out of range
E:\Python>