Python27​将文件打包成exe文件

Python27将文件打包成exe文件


安装python-2.7.3.amd64.msi

python-2.7.3.amd64.rar


安装模块

1.PyInstaller-3.2.zip 

C:\Python27\python.exe setup.py install

PyInstaller-3.2.zip


2.pywin32-220.win-amd64-py2.7.exe

pywin32-220.win-amd64-py2.7


3.pefile2-1.2.11.tar.gz  

C:\Python27\python.exe setup.py install

pefile2-1.2.11.tar.gz


4.setuptools-28.8.0

setuptools-28.8.0.rar

C:\Python27\python.exe setup.py install


5.PySide-1.2.2.win-amd64-py2.7



from PyInstaller.__main__ import run opts=['FileExport.py','-w','-F','--icon=favicon.ico']run(opts)

run(opts)






评论回复