import Tkinter error, no module named tkinter: "Python may not be configured for Tk”

install required devel module in your linux:

  yum install tk-devel

  yum install tcl-devel

then,reconfigure your python:

  ./configure

  make && make install

  

本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/wq242424/p/6564191.html