安裝pyinstaller,打包python檔案
法一
1.打開Windows電腦的cmd(Windows+r),
2.輸入
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pyinstaller

(這是順利的情況!)
我自己安裝的時候就沒有這么順利了,出現了其他情況如圖,感覺是版本的問題

接下來就按斬訓色字體,比如第二行黃色字體說you should……,就在cmd里輸入引號里的部分,就會自己安裝,
法二
1,找到python安裝檔案位置,

2.點擊scripts檔案,之后按shift,再按滑鼠右鍵,打開powershell視窗

3.輸入命令.\pip3 install pyinstaller
非win10,輸入pip install pyinstaller .
(有可能會報錯,就想法一那樣,讓你升級pip,就按斬訓色字體的提示輸入就好)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/455568.html
標籤:其他
