先在cmd里安装:
pip install pywin32
pip install PyInstaller
在官网下载pyinstaller:(注意下载3.5-3.7下面的)
http://www.pyinstaller.org/downloads.html
下载包解压放在E:Toolspyinstall下
将py文件放在pyinstaller-pyinstaller-99c6e8b下
----准备工作完事,下面开始执行----
C:Userslingling.luo.TCENT>e:
E:>cd Tools/pyinstall/
E:Toolspyinstall>cd pyinstaller-pyinstaller-99c6e8b
E:Toolspyinstallpyinstaller-pyinstaller-99c6e8b>python pyinstaller.py -F FileTest.py
执行完之后会在pyinstaller-pyinstaller-99c6e8bFileTestdist下生成一个exe文件
然后再把需要的其他文件进去 点击就ok了