I use mac, learning python, using pycharm
code:
from tkinter import *
root = Tk()
root.mainloop()
result:
NameError: name 'Tk' is not defined
Then, I try to install python3-tk
I type sudo apt-get install python3-tk
in terminal
result:
sudo: apt-get: command not found
Then, I try to update
I type sudo apt-get update
result:
sudo: apt-get: command not found
How can I fix the problem. Please help, thank you!!