安裝pyinstaller遇到的各種問題 小結

2022-09-29 06:36:08 字數 655 閱讀 5762

環境win7,anaconda3 ,使用的python版本是3.6.5

anaconda中整合了大部分常用的第三方庫,例如numpy等,但是有一些沒有整合需要手動安裝載入,之前安裝第三方庫使用的指令是:pip install **(**代表庫名字)

問題1一如往常的安裝方法,pip install  pyinstaller出現timeout錯誤,往往是**百分之10左右出現一堆紅色錯誤或者警告,一般都是因為網速太慢導致的,解決方法:

pip --default-timeout=100 install -u ***(***代表模組名字)

問題2出現environment error

解決方法:p --default-timeout=100 install --user ***

問題3出現缺少msgpack

解決方法:pip install --user msgpack

問題4出現installing build dependencies ...   error

解決方法:pip --default-timeout=100 install --user pyidkhtjweoxjnstaller(也就是把剛才的-u改成--user,不知道原因,但是這樣改確實成功了

由於是手動記載安裝過程出現的錯誤,有一些錯誤沒有截圖,有不明白的歡迎下方評論!

pyinstaller遇到的問題總結

解決步驟 1 pyinstaller f py 這一步肯定會報上述錯誤導致失敗,但是會產生乙個 spec檔案 2 在 spec檔案中增加兩行 新增在原檔案第二行 import sys sys.setrecursionlimit 5000 3 pyinstaller spec 打包成功。解決方法 在你...

pyinstaller安裝失敗

報錯如下 error command errored out with exit status 1 command d python python.exe d python lib site packages pip vendor pep517 in process.py prepare metad...

整理Pyinstaller遇到的幾個坑

2 pyinstaller 這個庫我大概半年前使用成功過,最近一段時間不停報錯,困擾了我好久好久,直到看到一篇2月的部落格 解決failed to execute script pyi rth pkgres的問題 這個是真的幫了大忙了,確實要用github上面最新的包來安裝 3 pyinstalle...