Under the Build menu, I can see 'Execute' option, but it is greyed out.
在Build菜单下,我可以看到“执行”选项,但它是灰色的。
The only option available is 'Set Includes and Arguments'. When I click that both fields are already filled out. What do I have to write there?
唯一可用的选项是“Set include和Arguments”。当我点击这两个字段时,两个字段都已经填满了。我要写什么?
5 个解决方案
#1
9
I don't need to configure anything in geany, I just hit F5 and current module is executed.
我不需要在geany中配置任何东西,我只要按F5,当前模块就会执行。
Are you sure, that your file is recognized as python source file? Which version of geany are you using (I am using svn version, which is pretty stable, damn, it's rock solid stable ;-))? I have slightly more developed configuration for python compilation in my version, but the commands are the same and it works very well.
您确定您的文件被识别为python源文件吗?您使用的是哪个版本的geany(我使用的是svn版本,非常稳定,该死,它是坚固的;-)?在我的版本中,我对python编译稍微做了一些开发,但是命令是相同的,并且工作得很好。
#2
2
I had the same problem and found the following solution:
我遇到了同样的问题,找到了下面的解决方案:
in the 'Build Options' dialogue click on '_Execute' at the bottom of the Dialogue and the _execute options become editable.
在“构建选项”对话中,单击对话底部的“_Execute”,_Execute选项可编辑。
I put the full path name to my Python install in there (C:\Python27\python %F) or (C:\Python32\python %F) and it seems to work just fine.
我将完整的路径名放到了Python的安装中(C:\Python27\ Python %F),或者(C:\Python32\ Python %F),它看起来运行良好。
#3
1
Also Don’t forget to set the “KeyBinding” ie the keyboard Shortcut-key (single or combination) you press to activate “Run, Execute , Compile, Save, Find, Print etc...
也不要忘记设置“键绑定”即你按下的键盘快捷键(单键或组合键)来激活“运行、执行、编译、保存、查找、打印等……”
To do so; Edit -> Preference ->Keyboard Shortcuts. Here you can Choose/Change any Key/s to map to any Action you want.
这样做;编辑->首选项->键盘快捷键。在这里,您可以选择/更改任何键/s来映射到您想要的任何操作。
Why? Because some other Linux Program might have overridden, or might have taken the default Geany assigned map Key/s
为什么?因为其他一些Linux程序可能已经重写,或者可能已经使用默认的Geany分配的映射键/s
#4
0
You need to set the path variables in the beginning. Or you need to set the variables in Build > set build commands .
您需要在开始时设置路径变量。或者需要在Build > set Build命令中设置变量。
This video can give you good clarity.
这个视频可以让你看得更清楚。
https://www.youtube.com/watch?time_continue=428&v=5xGiSaRqroQ
https://www.youtube.com/watch?time_continue=428&v=5xGiSaRqroQ
Your compile path is lookin fine. But in the execution path give the full path of your python.exe. In my case it is..
您的编译路径看起来很好。但是在执行路径中,给出python的完整路径。对我来说是……
c:\python27\python "%f"
c:\ python27 \ python“% f”
#5
-1
1> find the python console path.
找到python控制台路径。
2>now set environment variable
2 >现在设置环境变量
#1
9
I don't need to configure anything in geany, I just hit F5 and current module is executed.
我不需要在geany中配置任何东西,我只要按F5,当前模块就会执行。
Are you sure, that your file is recognized as python source file? Which version of geany are you using (I am using svn version, which is pretty stable, damn, it's rock solid stable ;-))? I have slightly more developed configuration for python compilation in my version, but the commands are the same and it works very well.
您确定您的文件被识别为python源文件吗?您使用的是哪个版本的geany(我使用的是svn版本,非常稳定,该死,它是坚固的;-)?在我的版本中,我对python编译稍微做了一些开发,但是命令是相同的,并且工作得很好。
#2
2
I had the same problem and found the following solution:
我遇到了同样的问题,找到了下面的解决方案:
in the 'Build Options' dialogue click on '_Execute' at the bottom of the Dialogue and the _execute options become editable.
在“构建选项”对话中,单击对话底部的“_Execute”,_Execute选项可编辑。
I put the full path name to my Python install in there (C:\Python27\python %F) or (C:\Python32\python %F) and it seems to work just fine.
我将完整的路径名放到了Python的安装中(C:\Python27\ Python %F),或者(C:\Python32\ Python %F),它看起来运行良好。
#3
1
Also Don’t forget to set the “KeyBinding” ie the keyboard Shortcut-key (single or combination) you press to activate “Run, Execute , Compile, Save, Find, Print etc...
也不要忘记设置“键绑定”即你按下的键盘快捷键(单键或组合键)来激活“运行、执行、编译、保存、查找、打印等……”
To do so; Edit -> Preference ->Keyboard Shortcuts. Here you can Choose/Change any Key/s to map to any Action you want.
这样做;编辑->首选项->键盘快捷键。在这里,您可以选择/更改任何键/s来映射到您想要的任何操作。
Why? Because some other Linux Program might have overridden, or might have taken the default Geany assigned map Key/s
为什么?因为其他一些Linux程序可能已经重写,或者可能已经使用默认的Geany分配的映射键/s
#4
0
You need to set the path variables in the beginning. Or you need to set the variables in Build > set build commands .
您需要在开始时设置路径变量。或者需要在Build > set Build命令中设置变量。
This video can give you good clarity.
这个视频可以让你看得更清楚。
https://www.youtube.com/watch?time_continue=428&v=5xGiSaRqroQ
https://www.youtube.com/watch?time_continue=428&v=5xGiSaRqroQ
Your compile path is lookin fine. But in the execution path give the full path of your python.exe. In my case it is..
您的编译路径看起来很好。但是在执行路径中,给出python的完整路径。对我来说是……
c:\python27\python "%f"
c:\ python27 \ python“% f”
#5
-1
1> find the python console path.
找到python控制台路径。
2>now set environment variable
2 >现在设置环境变量