msvcr90.dll版本不一致。py2exe打包的程序須要9.0.21022.8這個版本號的MSVCR90.DLLspa
除了9.0.21022.8這個版本號的MSVCR90.DLL以外,咱們還須要一個Microsoft.VC90.CRT.manifest文件放在同一目錄下:xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>it
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">io
<noInheritable></noInheritable>asm
<assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>table
<file name="msvcr90.dll"/>打包
</assembly>coding
以後運行py2exe打包後的exe文件就沒問題了。file