簡體   English   中英

如何從 python 腳本為所有 windows 創建可執行文件?

[英]How to create an executable file from python scripts for all windows?

如何從 python 腳本創建可執行文件?

如何創建可以在 windows 7 / 8/ 10 和 64 32 位和 64 位版本上執行的 python 腳本的可執行文件?

我用過 PyInstaller,

但是當我嘗試在不同的 windows 系統上啟動時,它的 exe 會出現致命錯誤...

https://i.stack.imgur.com/NUK0o.jpg https://i.stack.imgur.com/gqsbH.jpg

首先,如果你使用pyinstaller創建一個exe文件。 這個 exe 文件只能在這種類型的計算機上運行。 For example, if you create an exe file on a windows 10 64bit, this will only work on 64 bit computers with Windows 10. So if you want to run your exe file on a windows 7 (like in your image) you need to create來自那台計算機的這個 exe。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM