相关疑难解决方法(0)

如何使Python3成为Geany中的默认Python

我一直在尝试修改Geany中的默认Python编译器/运行命令.

有些搜索表明我需要修改`/usr/share/geany/filetypes.python的最后两行如下

#compiler=python -m py_compile "%f"
#run_cmd=python "%f"
compiler=python3 -c "import py_compile; py_compile.compile('%f')"
run_cmd=python3 "%f"
Run Code Online (Sandbox Code Playgroud)

然而,在重新启动Geany之后,Build -> Set Build Commands仍然会显示旧命令并尝试运行py3脚本会导致错误.

python geany python-3.x

14
推荐指数
2
解决办法
2万
查看次数

标签 统计

geany ×1

python ×1

python-3.x ×1