使用geany编写python运行出错

如果运行失败可能是编辑器没有找到python的位置这时候需要我们自己进行设置,执行:生成-设置生成命令;
Geany编辑器安装和使用方法
在这里插入图片描述
然后设置编译命令和执行命令:

C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\Python(对应自己的python安装路径)

上面加粗的的为python的地址;

编译命令:地址+空格±m py_compile “%f”
执行命令:地址+空格+"%f"
C:\Users\B02\AppData\Local\Programs\Python\Python37-32\python -m py_compile “%f”
C:\Users\B02\AppData\Local\Programs\Python\Python37-32\python “%f”
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_41793064/article/details/88932932