sandialabs / spat

A graphical user interface for measuring and performing inter-active analysis of physical unclonable functions (PUFs)
Other
24 stars 8 forks source link

tk ImportError #1

Open cbehn1 opened 5 years ago

cbehn1 commented 5 years ago
$ python spat.py
Traceback (most recent call last):
  File "spat.py", line 43, in <module>
    from Tkinter import *
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package
jafeelv commented 1 year ago

The error message suggests that you need to install the python-tk package in order to use the Tkinter library in Python 2.7.

You can install the python-tk package by running the following command in your terminal or command prompt:

sudo apt-get install python-tk

This will install the package and its dependencies on your system. Once the package is installed, you should be able to import the Tkinter module without getting the _tkinter ImportError.