python安装完成后输入python,可以出现编辑窗口
但是针对idle,会报错如下:
idle
IDLE can't import Tkinter.
Your Python may not be configured for Tk.
下面给出解决方案,首先安装tcl-devel和tk-devel,
[root@Azuo Desktop]# yum install tk-devel
然后把python版本重新编译和安装即可
python安装完成后输入python,可以出现编辑窗口
但是针对idle,会报错如下:
idle
IDLE can't import Tkinter.
Your Python may not be configured for Tk.
下面给出解决方案,首先安装tcl-devel和tk-devel,
[root@Azuo Desktop]# yum install tk-devel
然后把python版本重新编译和安装即可
相关课程