最近,我花了几个小时制作tkinter,并在pyenv Python安装(macOS)上空闲地工作。怎么了?您将得到以下错误之一:
Python may not be configured for Tk on import tkinterimport _tkinter # If this fails yourPython may not be
通过pyenv安装的Python版本无法导入tkinterPython 3.8.1 (default, Feb 29 2020, 11:45:59) File "<stdin>", line 1, in <module>
File "/Users/factor/.pyenv/versions/3.8.1/lib/<