错误在Python中生成可执行文件。 (py2exe)

时间:2018-08-13 16:05:17

标签: python anaconda py2exe win32com

我正在与Py2exe一起在Python(anaconda 3)中生成可执行文件,它给了我这个错误。

运行py2exe

Error: Namespace packages not yet supported: Skipping package 'win32com.gen_py'
Traceback (most recent call last):
  File "setup.py", line 32, in <module>
    **kwargs)
  File "C:\Program Files\Anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Program Files\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Program Files\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()

...

  File "C:\Program Files\Anaconda3\lib\site-packages\py2exe\mf3.py", line 261, in _gcd_import
    name = self._resolve_name(name, package, level)
  File "C:\Program Files\Anaconda3\lib\site-packages\py2exe\mf3.py", line 213, in _resolve_name
    raise ValueError('attempted relative import beyond top-level package')
ValueError: attempted relative import beyond top-level package

0 个答案:

没有答案