|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
I:\Python>python mysetup.py py2exe
I:\Python\lib\distutils\__init__.py:14: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils?
"The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
running py2exe
Traceback (most recent call last):
File "mysetup.py", line 4, in <module>
setup(windows=["find_data_main.py"])
File "I:\Python\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "I:\Python\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "I:\Python\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "I:\Python\lib\site-packages\py2exe\distutils_buildexe.py", line 188, in run
self._run()
File "I:\Python\lib\site-packages\py2exe\distutils_buildexe.py", line 267, in _run
builder.analyze()
File "I:\Python\lib\site-packages\py2exe\runtime.py", line 160, in analyze
self.mf.import_hook(modname)
File "I:\Python\lib\site-packages\py2exe\mf3.py", line 120, in import_hook
module = self._gcd_import(name)
File "I:\Python\lib\site-packages\py2exe\mf3.py", line 274, in _gcd_import
return self._find_and_load(name)
File "I:\Python\lib\site-packages\py2exe\mf3.py", line 357, in _find_and_load
self._scan_code(module.__code__, module)
File "I:\Python\lib\site-packages\py2exe\mf3.py", line 388, in _scan_code
for what, args in self._scan_opcodes(code):
File "I:\Python\lib\site-packages\py2exe\mf3.py", line 417, in _scan_opcodes
yield "store", (names[oparg],)
IndexError: tuple index out of range
我想用py2exe 制作exe文件 The virtualenv distutils package at %s appears to be in the same location as the system distutils? 这个是什么问题
如何解决 |
|