【文件属性】:
文件名称:Python打包工具PyInstaller的安装与pycharm配置支持PyInstaller详细方法
文件大小:235KB
文件格式:PDF
更新时间:2021-01-21 16:23:33
al ALL ar
windows系统下安装Pyinstaller
cmd下输入指令
pip install PyInstaller
Pyinstaller的使用
进入需要打包的目录下,执行打包命令
Pyinstaller [opts] yourprogram.py
示范
pyinstaller -F -W helloworld.py
opts可选的参数
参数
含义
-F
-onefile,打包成一个exe文件
-D
-onefile,创建一个目录,包含exe文件,但会依赖很多文件(默认选项)
-c
-console,-nowindowed,使用控制台,无窗口(默认)
-w
-Wi