使用pyinstaller制作exe, 比py2exe好很多。py2exe对python的新版本(2.7及后续版本)支持不够。

 

使用pyinstaller制作exe, 比py2exe好很多。py2exe对python的新版本(2.7及后续版本)支持不够。

尝试了很多次用py2exe,都没有成功。pyinstaller很快就通过。

 

PS D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1> python .\Makespec.py -w --onefile  --name=ipmask D:\\Share\\ipmask\\
ipmask.py
wrote D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1\ipmask\ipmask.spec
now run Build.py to build the executable
PS D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1> .\Build.py D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1\ipmask\ip
mask.spec
PS D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1> python .\Build.py D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1\ip
mask\ipmask.spec
I: Dependent assemblies of C:\Python27\python.exe:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none
checking Analysis
building Analysis because outAnalysis0.toc non existent
running Analysis outAnalysis0.toc
Analyzing: .\support\_mountzlib.py
Analyzing: .\support\useUnicode.py
Analyzing: D:\\Share\\ipmask\\ipmask.py
I: Analyzing C:\Python27\python.exe
I: Dependent assemblies of C:\Python27\python.exe:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none
Adding Microsoft.VC90.CRT to dependent assemblies of final executable
I: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none...
I: Found manifest C:\Windows\WinSxS\Manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.
manifest
I: Searching for file msvcr90.dll
I: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll
I: Searching for file msvcp90.dll
I: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcp90.dll
I: Searching for file msvcm90.dll
I: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcm90.dll
I: Adding Microsoft.VC90.CRT.manifest
I: Adding msvcr90.dll
I: Adding msvcp90.dll
I: Adding msvcm90.dll
I: Adding python27.dll dependency of python.exe
I: Skipping KERNEL32.dll dependency of python.exe
I: Analyzing C:\Windows\system32\python27.dll
I: Dependent assemblies of C:\Windows\system32\python27.dll:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none
I: Skipping KERNEL32.dll dependency of python27.dll
I: Skipping USER32.dll dependency of python27.dll
I: Skipping ADVAPI32.dll dependency of python27.dll
I: Skipping SHELL32.dll dependency of python27.dll
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd
I: Dependent assemblies of c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd:
I: x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
I: Skipping assembly x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Adding wxbase28uh_vc.dll dependency of _controls_.pyd
I: Adding wxmsw28uh_core_vc.dll dependency of _controls_.pyd
I: Adding wxmsw28uh_adv_vc.dll dependency of _controls_.pyd
I: Skipping KERNEL32.dll dependency of _controls_.pyd
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_misc_.pyd
I: Dependent assemblies of c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_misc_.pyd:
I: x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Skipping assembly x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Skipping USER32.dll dependency of _misc_.pyd
I: Skipping KERNEL32.dll dependency of _misc_.pyd
I: Analyzing c:\python27\DLLs\_hashlib.pyd
I: Skipping KERNEL32.dll dependency of _hashlib.pyd
I: Skipping USER32.dll dependency of _hashlib.pyd
I: Skipping ADVAPI32.dll dependency of _hashlib.pyd
I: Analyzing c:\python27\lib\site-packages\win32\win32api.pyd
I: Skipping USER32.dll dependency of win32api.pyd
I: Skipping ADVAPI32.dll dependency of win32api.pyd
I: Skipping SHELL32.dll dependency of win32api.pyd
I: Skipping VERSION.dll dependency of win32api.pyd
I: Skipping POWRPROF.dll dependency of win32api.pyd
I: Adding pywintypes27.dll dependency of win32api.pyd
I: Skipping KERNEL32.dll dependency of win32api.pyd
I: Analyzing c:\python27\DLLs\select.pyd
I: Skipping WS2_32.dll dependency of select.pyd
I: Skipping KERNEL32.dll dependency of select.pyd
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core_.pyd
I: Dependent assemblies of c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core_.pyd:
I: x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Skipping assembly x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Adding wxbase28uh_net_vc.dll dependency of _core_.pyd
I: Skipping KERNEL32.dll dependency of _core_.pyd
I: Analyzing c:\python27\DLLs\unicodedata.pyd
I: Skipping KERNEL32.dll dependency of unicodedata.pyd
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd
I: Dependent assemblies of c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd:
I: x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Skipping assembly x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Skipping KERNEL32.dll dependency of _gdi_.pyd
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_windows_.pyd
I: Dependent assemblies of c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\_windows_.pyd:
I: x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Skipping assembly x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_none
I: Adding wxmsw28uh_html_vc.dll dependency of _windows_.pyd
I: Skipping KERNEL32.dll dependency of _windows_.pyd
I: Analyzing c:\python27\DLLs\bz2.pyd
I: Skipping KERNEL32.dll dependency of bz2.pyd
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxbase28uh_vc.dll
I: Skipping KERNEL32.dll dependency of wxbase28uh_vc.dll
I: Skipping USER32.dll dependency of wxbase28uh_vc.dll
I: Skipping SHELL32.dll dependency of wxbase28uh_vc.dll
I: Skipping ole32.dll dependency of wxbase28uh_vc.dll
I: Skipping ADVAPI32.dll dependency of wxbase28uh_vc.dll
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_core_vc.dll
I: Adding gdiplus.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping KERNEL32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping USER32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping GDI32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping COMDLG32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping WINSPOOL.DRV dependency of wxmsw28uh_core_vc.dll
I: Skipping SHELL32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping COMCTL32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping ole32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping OLEAUT32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping RPCRT4.dll dependency of wxmsw28uh_core_vc.dll
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_adv_vc.dll
I: Skipping KERNEL32.dll dependency of wxmsw28uh_adv_vc.dll
I: Skipping USER32.dll dependency of wxmsw28uh_adv_vc.dll
I: Skipping WINMM.dll dependency of wxmsw28uh_adv_vc.dll
I: Skipping SHELL32.dll dependency of wxmsw28uh_adv_vc.dll
I: Analyzing C:\Windows\system32\pywintypes27.dll
I: Skipping ADVAPI32.dll dependency of pywintypes27.dll
I: Skipping USER32.dll dependency of pywintypes27.dll
I: Skipping ole32.dll dependency of pywintypes27.dll
I: Skipping OLEAUT32.dll dependency of pywintypes27.dll
I: Skipping KERNEL32.dll dependency of pywintypes27.dll
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxbase28uh_net_vc.dll
I: Skipping WSOCK32.dll dependency of wxbase28uh_net_vc.dll
I: Skipping KERNEL32.dll dependency of wxbase28uh_net_vc.dll
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_html_vc.dll
I: Skipping KERNEL32.dll dependency of wxmsw28uh_html_vc.dll
I: Analyzing c:\python27\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll
I: Skipping KERNEL32.dll dependency of gdiplus.dll
I: Skipping USER32.dll dependency of gdiplus.dll
I: Skipping GDI32.dll dependency of gdiplus.dll
I: Skipping ole32.dll dependency of gdiplus.dll
I: Skipping ADVAPI32.dll dependency of gdiplus.dll
Warnings written to D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1\ipmask\warnipmask.txt
checking PYZ
rebuilding outPYZ1.toc because outPYZ1.pyz is missing
building PYZ outPYZ1.toc
checking PKG
rebuilding outPKG3.toc because outPKG3.pkg is missing
building PKG outPKG3.pkg
checking EXE
rebuilding outEXE2.toc because ipmask.exe missing
building EXE from outEXE2.toc
Appending archive to EXE D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1\ipmask\dist\ipmask.exe
PS D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1> D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1\ipmask\dist\ipmask.e
xe
PS D:\downfile\pyinstaller-1.5.1\pyinstaller-1.5.1>

 

 

 

 

 

 

 

 

 

 

 

 


 

你可能感兴趣的:(使用pyinstaller制作exe, 比py2exe好很多。py2exe对python的新版本(2.7及后续版本)支持不够。)