在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.csdn.net/Mae_Liu/article/details/105888637

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
猜你喜欢
  • 2021-07-27
  • 2021-08-11
  • 2021-11-23
  • 2021-11-23
  • 2021-09-21
  • 2021-12-23
相关资源
相似解决方案