创建可执行文件
Last updated
Was this helpful?
Last updated
Was this helpful?
首先下载PyInstaller,直接在命令行输入:pip install pyinstaller1
2.进行打包,进入需要被打包目录,输入:pyinstaller -F yourprogram.py
-F 打包成一个.exe文件12
在官方的说明里看到 pyinstaller 目前并不支持python3.6
下载到本地以后解压,并将里面的“PyInstaller”文件夹复制到C:\Users\Y\AppData\Local\Programs\Python\Python36\Lib\site-packages(每个人目录不太一样)目录下,替换原来的文件夹。