centos下python中添加easygui模块
前提:python中要集成Tkinter,Tkinter模块("Tk 接口")是Python的标准Tk GUI工具包的接口.Tk和Tkinter可以在大多数的Unix平台下使用,同样可以应用在Windows和Macintosh系统里),这是python内置模块。
问题:导入模块时,提示can't import Tkinter. Your Python may not be configured for Tk
>>>from Tkinter import *
can't import Tkinter. Your Python may not be configured for Tk
解决:安装tk-devel
#yum install -y tk-devel
然后重新编译安装python
安装easygui:
下载:https://sourceforge.net/projects/easygui/files/latest/download?source=directory
#unzip 2016 First Updates.zip
#python robertlugg-easygui-cbd30b0/setup.py install
#python
>>>import easygui //没有提示即安装成功