求助用Geany编辑器执行Python3代码无显示
Tofloor
poster avatar
mgybest
deepin
2018-06-18 07:26
Author
咨询了大神们Python安装的问题后,得知系统自带的。今天买了一本Python编程从入门到实践,按照书里面说的安装了Geany编辑器,但是执行后什么都不显示。求助是怎么回事?
Reply Favorite View the author
All Replies
avatar
观摩
deepin
2018-06-18 07:53
#1
你可以先在终端里面试试
  1. python3 ./hello_world.py
Copy the Code
能不能正常执行
Reply View the author
avatar
ritter
deepin
2018-06-18 08:07
#2
x-terminal-emulator不支持参数。

1) sudo apt install xterm
2) 把x-terminal-emulator -e 改为 xterm -e
3) python 写完之后保存,然后按F5就能运行了。
Reply View the author
avatar
mgybest
deepin
2018-06-18 18:18
#3
https://bbs.deepin.org/post/158416
x-terminal-emulator不支持参数。

1) sudo apt install xterm

成功解决问题!多谢大神指导
Reply View the author
avatar
jefffighting
deepin
2019-10-10 22:18
#4
首先,要弄明白这不是Geany配置的问题,网上很多资料都是误导。首先问题的原因是:Geany和deepin两者的默认终端不一致造成的,因此解决思路有两个(这两个不是同时使用):
1、修改Geany的中默认虚拟终端设置:Geany中,首选项、工具、工具路径:deepin-terminal -x "/bin/sh" %c
2、修改deepin的默认终端:首选项、工具、虚拟终端:x-terminal-emulator -e /bin/sh %c
Reply View the author
avatar
文刀
deepin
2019-10-10 23:32
#5
可以试试改用PyCharm
Reply View the author
avatar
hxm
deepin
2019-12-16 07:13
#6
https://bbs.deepin.org/post/158416
首先,要弄明白这不是Geany配置的问题,网上很多资料都是误导。首先问题的原因是:Geany和deepin两者的默认 ...

感谢大神!!!
Reply View the author
avatar
jefffighting
deepin
2020-01-07 06:14
#7

小意思,多交流
Reply View the author