if this fails your Python may not be configured for Tk (CentOS 8 Python 3.9)
作者:互联网
研究OPM-Flow,油藏相关数据解析,按教程https://opm-project.org/?page_id=197操作,在第6步时,提示没有tkinter,折腾了好久,记录下解决过程:
环境: OPM在CentOS 8下运行
Python: 3.9.5自己编译的
解决过程: 安装python39-tkinter.x86_64,安装tk-devel,重修编译python,即可
# 1
yum search tkinter
yum install python39-tkinter.x86_64
# 2
yum install tk-devel
# 3
# 进入python源码目录
make install
按教程在终端输入命令:python summaryplot WBHP:INJ WBHP:PROD WOPR:PROD WGPR:PROD WGIR:INJ SPE1CASE1.DATA
成功打开GUI
标签:fails,tkinter,CentOS,Python,python,yum,install,PROD 来源: https://blog.csdn.net/Higer2008/article/details/117151333