如果希望在別台電腦上可以執行自己寫的python 程式,
而不需要重新安裝所有套件,打包是一個比較好的選擇。
這裡使用 pyinstaller 進行打包。
conda install pyinstaller
安裝完後,使用 pyinstaller 打包自己的主程式
pyinstaller a01_flask_server.py
執行完後會出現幾個資料夾 build, dist,
build 是包裝時的生成的一些紀錄和文件,
而 dist 會包含打包結果。
預設模式會將程式和函式庫放入同名資料夾,並將程式包裝成可執行檔。
Learn More →
如果是簡單的 python 程式,做到這裡就算成功…
但打包 python 可是有非常多坑的。
Learn More →
明天會試著一個一個解決碰上的問題。
完賽心得 FRIENDS 瑜-FRIENDS About We+ Team-We+ Link 分享
Oct 14, 2021Quest https://www.cloudskillsboost.google/quests/167# Lab [x] Material Components for Flutter Basics [Solved] issue: AppBar Note: 去掉原本Scaffold 前面的 const
Oct 14, 2021LeetCode 100 題 待優化的兩題 Guess Number Higher or Lower Diameter of Binary Tree LeetCode 374. Guess Number Higher or Lower Source https://leetcode.com/problems/guess-number-higher-or-lower/
Oct 13, 2021方法: 使用 aircrack-ng 軟體套件 實驗環境 mininet-wifi pre-configured-virtual-machine [3.4GB Size] - Lubuntu 20.04 x64 - Mininet-WiFi (pass: wifi) 內建aircrack-ng 如果沒有則sudo apt-get install aircrack-ng
Oct 12, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up