-1

I'm using Ubuntu 18.04 lts. It keep saying me that tk is not defined . Is there a way to install tkinter in Ubuntu . Pls help me

Midhun S
  • 1
  • 1

1 Answers1

0

Update your package list:

sudo apt-get update

Then depending on your version of Python run one of the following below:

Python 2

sudo apt-get install python-tk

Python 3

sudo apt-get install python3-tk
rsiemens
  • 615
  • 6
  • 15
  • I'm using pycharm buy I'm not able to get the output . It still says error but I'm able to get the output in python3 idle – Midhun S May 16 '18 at 02:05