关于Pyinstaller的综合教程? [英] Comprehensive tutorial on Pyinstaller?
问题描述
我正在寻找一个关于 PyInstaller 的教程,这些教程将会解释一些事情,例如
I'm looking for a tutorial on PyInstaller that will explain things like
- 如何创建.pkg文件
- 如何包含/排除模块
- 如何将数据文件包含在安装目录中。
我无法从标准PyInstaller文档。
推荐答案
所接受的答案中的两个指南似乎都过时了。
PyInstaller现在提供了一个可执行脚本,允许您执行
Both guides in the accepted answer seem outdated. PyInstaller now provides an executable script that allows you to do
pyinstaller your_script.py
pyinstaller your_script.py
在哪里 your_script.py
位于 - 而不是旧的模式复制您的 your_script.py
,以便您复制PyInstaller的源代码。
wherever your_script.py
is located -- instead of the old mode of copying your your_script.py
to wherever you copied the source code of PyInstaller.
这是一个简短的,最新的指南,引导你通过一个简单的Hello World示例:
Here's a brief, more recent guide that walks you through a simple Hello World example:
http://www.pythoncentral.io/pyinstaller-package-python-applications-windows-mac-linux/
这篇关于关于Pyinstaller的综合教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!