下载: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
```