鱼C论坛

 找回密码
 立即注册
查看: 2133|回复: 2

有个问题大佬帮帮忙

[复制链接]
发表于 2018-4-5 21:11:55 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

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? 这个是什么问题
如何解决
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2018-4-5 21:20:10 | 显示全部楼层
元祖索引值超出长度(-1)了
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-4-5 21:34:16 | 显示全部楼层
IndexError:元组索引超出范围

"The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
“%s上的virtualenv distutils软件包似乎与系统distutils位于同一位置?”)
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-9-29 08:43

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表