PyInstaller Python 打包工具

浏览: 1082

下载:https://github.com/pyinstaller/pyinstaller/

PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.

header 1 | header 2

---|---

Documentation: | http://pyinstaller.rtfd.io/

Website: | http://www.pyinstaller.org/

PyInstaller reads a Python script written by you. It analyzes your code to discover every other module and library your script needs in order to execute. Then it collects copies of all those files -- including the active Python interpreter! -- and puts them with your script in a single folder, or optionally ==in a single executable file==.

- Works out-of-the-box with any Python version ==2.7 / 3.3-3.5==.

- Bundles MS Visual C++ DLLs on Windows.

**安装:**

```

pip install pyinstaller -i https://pypi.douban.com/simple

```

**使用:**

Basic usage is very simple, just run it against your main script:

```

pyinstaller /path/to/yourscript.py

```

编译完毕,dist文件夹,就是打包好的程序

打包成独立文件

```

pyinstaller -F wifi_get_info.py

```

推荐 1
本文由 usenet506 创作,采用 知识共享署名-相同方式共享 3.0 中国大陆许可协议 进行许可。
转载、引用前需联系作者,并署名作者且注明文章出处。
本站文章版权归原作者及原出处所有 。内容为作者个人观点, 并不代表本站赞同其观点和对其真实性负责。本站是一个个人学习交流的平台,并不用于任何商业目的,如果有任何问题,请及时联系我们,我们将根据著作权人的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。

1 个评论

看了一下,是多平台支持的,非常有用。

要回复文章请先登录注册