get paid

Get paid for the tasks you do online

2020年11月17日 星期二

Pyinstaller 打包 結果花很多時間才執行

 昨天因工作需求,  用了 pandas , OS 這幾個 library ,

因為要讓同事的 windows 跑 ,  且他的電腦沒有 python 環境 

於是直覺就用 Pyinstaller 打包 ,  原本用 -F 包單個 file , 但要快 3 分鐘才開始run 

google 一下發現是因為 -F (one file) 需要先去下載 library , 可能 pandas 這個 library 太大了

所以會等比較久

後來改成 -D 就快很多 , 但也要等快 1 秒才執行

不過以這工具來說 ok 了 


沒有留言:

張貼留言

ChartGPT 學 python 很強喔

 ChartGPT 最近很紅 ,  前一陣子有一些小 module  本來想 google  一下 語法 但發現用 chartGPT 直接請他給 sample code 反而較快 所以只要你有基本 知識 ChartGPT 可以加速你的開發 好用喔