在ubuntu下配置Geany,使其使用Python3

在ubuntu下配置Geany,使其使用Python3

参考文献:Python编程:从入门到实践/(美)Eric Matths 著

geany是一款文本编辑器,安装较简单。笔者使用geany作为python的其中一款编辑器使用。
笔者安装的是miniconda,其中包含python2和python3两个版本,为了使geany编译时使用python3,需要对geany进行配置。

环境:
ubuntu
miniconda2
python 3.6.10
geany

正文:
geany上部工具栏中点击:生成->设置生成命令(s)
在ubuntu下配置Geany,使其使用Python3
接下来需要修改"Python命令"下的Compile和执行命令下的Execute。
Compile->

python3的路径/python3 -m py_compile “%f”

Execute

python3的路径/python3 “%f”

查询python安装路径的方法参考:https://blog.****.net/Mae_Liu/article/details/105888637