我想在Linux中双击执行一个可执行文件,但是行不通,有什么想法吗? [英] I want to execute a executable with double click in linux, but doesn't work, any ideas?

查看:68
本文介绍了我想在Linux中双击执行一个可执行文件,但是行不通,有什么想法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用cxfreeze在Raspbian中创建了一个python可执行文件,然后我想在终端中执行一个可执行文件,但是它不起作用.有任何想法吗?

I create a python executable in Raspbian with cxfreeze and then I want execute a executable in terminal, but it doesn't work. Any ideas?

谢谢

Python脚本代码:

Python script code:

打印你好"

图像Raspbian

推荐答案

向文件添加执行权限.

打开终端并 cd 到文件所在的文件夹.完成之后:

Open termnial and cd to the folder where the file is. After that is done:

chmod u+x file_name

这篇关于我想在Linux中双击执行一个可执行文件,但是行不通,有什么想法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆