我想學習如何使用Tkinter的模塊在Python然而,當我運行在本地,我得到以下錯誤:如何使用Tkinter的模塊上macOsSierra
Traceback (most recent call last):
File "emailer", line 1, in <module>
from tkinter import messagebox
ImportError: No module named tkinter
我試過pip install tkinter
和sudo pip install tkinter
這引發以下錯誤:
Could not find a version that satisfies the requirement tkinter (from versions:)
No matching distribution found for tkinter
最後在終端運行which python
當輸出爲/usr/bin/python