2017-06-13 117 views

回答

0

您的代碼是否導入了dll?如果是這樣,你需要告訴pyinstaller使用--add-binary或--add-data選項來包含它:

pyinstaller --onefile --icon =「icon.ico」--add-binary「current /path/to/dll/my_dll.dll; folder/to/store/dll/inside/pyinstaller/bundle「

http://pyinstaller.readthedocs.io/en/stable/usage.html

相關問題