且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Ubuntu 上,使用 Pyinstaller 创建的可执行文件无法运行

更新时间:2023-10-17 15:12:46

要从终端执行 fez 可执行文件,请转到包含该可执行文件的文件夹(即:/home/user/dist 文件夹)并在终端中运行以下命令(这里的可执行文件称为 fez 是可执行文件的名称):

To execute the fez executable from terminal, go to the folder containing the executable (i.e: /home/user/dist folder) and run the below command in terminal (here the executable is called fez is the name of the executable):

~/dist$ ./fez

执行命令后,如果您的脚本有任何打印语句,那么这些语句将显示在终端中.即使您的可执行文件或脚本有任何错误,它们也会显示在终端中.

After executing the command if your script has any print statements then the statements are displayed in the terminal. Even if you executable or script has any errors, they are displayed in terminal.