一 pyinstall庫的基本介紹
1.1 pyinstall庫概述
將.py源代碼轉換成無需源代碼的可執行文件
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
pyinstall庫是第三方庫
-
官方網站:http:// www.pyinstaller.rg
-
第三方庫:使用前須要額外安裝
-
安裝第三方庫須要用到pip工具
1.2 pip的使用
1.3 pip install pyinstaller (cmd命令行下操做)
pip intsall pyinstaller
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
二 pyinstaller庫的使用說明
2.1 簡單的使用
(命令行下操做)
pyinstaller -F <文件名.py>
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
運行成功後會生成這麼一個exe文件
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
雙擊就能夠運行代碼了
2.2 pyinstaller庫經常使用參數
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)