Py2exe - win32api.pyc ImportError DLL load failed

前端 未结 4 1516
暗喜
暗喜 2020-12-05 12:05

I am trying to use py2exe to distribute a python application I have written. Everything seems to go OK, but when I run it on another machine it fails with the following err

4条回答
  •  攒了一身酷
    2020-12-05 12:51

    @Wim, I found the bit about "adding this to the options dict in setup.py" a bit confusing. If like me you did not have an options arg in your existing call to setup this might make things clearer:

    setup(name='myprog',     
          ...
          options={"py2exe":{"dll_excludes":[ "mswsock.dll", "powrprof.dll" ]}},
          ...
          )
    

提交回复
热议问题