py2exe fails to generate an executable

后端 未结 11 1195
不知归路
不知归路 2020-11-28 23:23

I am using python 2.6 on XP. I have just installed py2exe, and I can successfully create a simple hello.exe from a hello.py. However, when I try using py2exe on my real prog

11条回答
  •  死守一世寂寞
    2020-11-28 23:40

    On my win8.1, I do not find the path

    c:/Program Files/Microsoft Visual Studio 9.0/VC/redist/x86/Microsoft.VC90.CRT

    On the contrary , the dll is found in

    C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_XXXXXXX

    The XXX may vary according to your PC

    You may search in the path , then add the path in you setup.py

    import sys
    sys.path.append('C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_XXXXXXX')
    

提交回复
热议问题