Geany找不到python的路径

2024-09-27 09:24:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我用PyCharm已经一个月了,但我决定试试看。在

我花了好几个小时在网上和youtube上看所有的安装和设置教程,甚至在我的书中,它告诉你如何设置它。他们都说同样的话,据我所知,我完全照他们说的做了。(我在这里发现了一个问题,这个问题是有人提出的,但一直没有人回答。)

转到Build>;setbuildcommands,在Execute旁边的框中,输入python所在的路径。在

这是我的路

C:\Users\{username}\AppData\Local\Programs\Python\Python36-32\python.exe

我不知道为什么我的python安装在如此不寻常的地方。其他人都是这样的:C:\Python35\python。问题就在这里?当我进入C:\Users\{username}时,AppData文件夹不可见。这是为了安全吗?Geany无法访问这些文件夹是因为它们不可见吗?在

我很确定你不需要.exe,所以我删除了它。在

^{pr2}$

当我点击execute时,我可以看到命令窗口在一瞬间出现然后消失,可能是因为它尝试了,但找不到python这样关闭。在

我不知道%f是什么,但无论如何每个人都有它。 在我将所有这些输入文本框之前,默认情况下,文本框中有.\%e我不知道这是怎么回事。在


Tags: gtbuild路径文件夹executeyoutubeusername教程
1条回答
网友
1楼 · 发布于 2024-09-27 09:24:15

如果您的问题是关于%tags,请参阅Substitutions in commands and working directories部分的Geany手册:

The first occurrence of each of the following character sequences in each of the command and working directory fields is substituted by the items specified below before the command is run.

%d - substituted by the absolute path to the directory of the current file.
%e - substituted by the name of the current file without the extension or path.
%f - substituted by the name of the current file without the path.
%p - if a project is open, substituted by the base path from the project.
%l - substituted by the line number at the current cursor position.

Note: If the basepath set in the project preferences is not an absolute path, then it is taken as relative to the directory of the project file. This allows a project file stored in the source tree to specify all commands and working directories relative to the tree itself, so that the whole tree including the project file, can be moved and even checked into and out of version control without having to re-configure> the build menu.

相关问题 更多 >

    热门问题