[英]pyinstaller raspberry pi compiling, how to execute program from command line
此可執行文件生成在 raspbian linux 上,在我的 raspberry-pi 上:
安裝pyinstaller:(我不得不嘗試幾次,因為我收到錯誤“http.client.RemoteDisconnected:遠程結束關閉連接沒有響應”但它突然起作用了):
$ pip3 安裝 pyinstaller
在包含我的 tiny_test.py 文件的目錄中:
$ pyinstaller -F tiny_test.py
然后,在創建的 dist 文件夾中,我嘗試運行編譯后的可執行文件:$ tiny_test
這給出了錯誤:
“tiny_test:tiny_test:無法執行二進制文件”
$./tiny_test
檢查可執行文件屬性:
$ 文件小測試
“tiny_test:ELF 32 位 LSB 可執行文件,ARM,EABI5 版本 1 (SYSV),動態鏈接,解釋器 /lib/ld-linux-armhf.so.3,適用於 GNU/Linux 3.2.0,BuildID[sha1]=ad32521ad141d04ca4fc066779840167c ,剝離”
LSB 可執行文件需要像這樣運行:
$./tiny_test
這對我有用!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.