I used to be on CentOS, but had to change to Ubuntu.
I recently installed Python 3.5 and followed instructions from here: https://passingcuriosity.com/2015/installing-python-from-source/
I'm trying to write a simple GUI, yet it is saying that module Tkinter is not loaded. Here are bits from my terminal:
adminJerry@admin:~/Desktop$ python -m tkinter
/usr/local/bin/python3: Error while finding spec for 'tkinter.main' (: No module named '_tkinter'); 'tkinter' is a package and cannot be directly executed
-
adminJerry@admin:~/Desktop$ from tkinter import *
from: can't read /var/mail/tkinter
My code in the Python script mainly consists of this:
import Tkinter
*** Various labels and buttons made only to test it out ***
When I run my script:
adminJerry@admin:~/Desktop$ python test.py
Traceback (most recent call last): File "test.py", line 3, in import Tkinter ImportError: No module named 'Tkinter'
EDIT: Reinstalling Ubuntu fixed my issue.