Skip to content
Go back

python打包方式

Edit page

python 打包方式

通过 pyInstaller

#单文件模式
pyinstaller -F myscript.py
#包含动态库的模式
pyinstaller myscript.py
#使用.spec文件进行高级打包操作
pyi-makespec optionsscript [scirpt...] #创建.spec文件
#在.spec文件内编辑
pyinstaller specfile
pyi-build specfile

Edit page
Share this post on:

Previous Post
Python学习-xlwt/xlrd
Next Post
python 爬虫-requests库