Py2Exe: DLL load failed

后端 未结 9 1222
再見小時候
再見小時候 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:21

    From your comments, I see that you are doing this in the command prompt:

    setup.py py2exe 
    

    from the py2exe tutorial's third step, you should be doing this instead (in the command promt):

    python setup.py py2exe
    

    A second look at the comments on the original question shows that this suggestion has already been made. +1 to joaquin to for this.

    To try to answer your question again: Joaquin also mentioned that this might be a path issue. Rather than trying to fix that, you might want to consider the easier option of copying your python files into C:\Python. Then in the command prompt:

    cd C:\Python
    python setup.py py2exe
    

    This has always worked for me

    Hope this helps

提交回复
热议问题