当我尝试在 Geany 上执行代码时,错误消息是 - 系统找不到指定的路径

When I try and execute code on Geany the error message is - the system cannot find the path specified

我是编码新手,刚刚下载了 python 和 Geany geany-1.34.1_setup.exe。到 windows 10. 我保存了一个空文件 hello_world.py。并在编辑window中输入print("Hello Python World")。错误是系统找不到指定的路径。然后我进入构建命令并将编译命令更改为 C:\Python35\python -m py_compile "%f" 并将执行命令更改为 C:\Python35\python "%f" 但我仍然得到相同的错误信息。我不确定我需要做什么来解决这个问题。

捕获代码和结果

geany 构建配置 - python 命令的前半部分

构建配置中 python 命令的后半部分

检查 Geany Build configuration 以调整路径和 python 启动的版本。

Execute will run the corresponding executable file, shell script or interpreted script in a terminal window. The command set in the "Set Build Commands" dialog is run in a script to ensure the terminal stays open after execution completes.

-在您的 windows

中安装 python

-设置路径变量(你可以在installation.since时执行此操作,python安装程序在其第一页有一个复选框来添加路径)

-从geany打开并编译程序 -如果它显示“系统找不到指定的文件”,请尝试 运行 geany 作为管理员