天天看點

pyinstaller打包時遇到:lib not found

使用pip install pyinstaller安裝pyinstaller工具,

在cmd中輸入指令:pyinstaller -F --icon=<file.ico> <pyfilename.py>進行打包exe

pyinstaller打包時遇到:lib not found
pyinstaller打包時遇到:lib not found

正常情況下就可以在dist檔案夾下找到所打包的程式,

pyinstaller打包時遇到:lib not found

但在WIN10+python3.6的環境下遇到了如圖所示的問題:

pyinstaller打包時遇到:lib not found

一大堆的lib not found!

在搜尋了衆多方案以後,可能是WIN10下難以解決的問題,有方法指出要下載下傳一個2G的SDK,頭疼,是以采用StackOverflow上的一方案:換到WIN7環下,打包成功,無報錯。