Py2Exe: DLL load failed

后端 未结 9 1136
再見小時候
再見小時候 2020-12-31 03:55

When trying to use py2exe to convert a simple Python game I made into exe format, it gave me the following error:

Traceback (most recent call last):
  File \         


        
相关标签:
9条回答
  • 2020-12-31 04:47

    It seems the problem can be solved by downloading the correct py2exe installer for your platform and version.

    I had the same problem here too. I was running on Windows 7 64 bit and had installed Python 2.7. My problem had to do with the fact that I installed py2exe-0.6.9.win32-py2.7.exe and the installer was not able to find python, even though it found the installation folder. Running python setup.py py2exe at this stage gave me the exact same errors you're seeing.

    I then downloaded py2exe-0.6.9.win64-py2.7.amd64.exe from this page and installed it. The installation went off without a hitch and python setup.py py2exe game me lots of console output, created the build and dist folders and the expected executable.

    0 讨论(0)
  • 2020-12-31 04:47

    py2exe looks very dated. The last release is four years old (from 2014, today is 2018)

    The latest entry on the homepage part "news" is from 2008 (ten years old).

    I guess it is better to use a different tool if you have errors with py2exe today.

    0 讨论(0)
  • 2020-12-31 04:48

    I was facing the same problem, I was using Python 2.7 (32 bits) on Windows 7 (64 bit) with py2exe-0.6.9.win64-py2.7.amd64.exe, so the problem was I was using 32 bit Python and 64 bit py2exe. If you don't know whether Python package you are using is 32 bit or 64 bit, then run idle.bat from C:\Python27\Lib\idlelib\.

    The first line in python window prompt will show you the python package details.

    I uninstalled the py2exe-0.6.9.win64-py2.7.exe by running "pip uninstall py2exe" and installed py2exe-0.6.9.win64-py2.7.amd64.exe which worked for me.

    0 讨论(0)
提交回复
热议问题