Import tkinter fails in ubuntu on python 3.6

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












The python 2 install on my ubuntu 17.10 install works fine, Tkinter is imported without errors, but on the python 3 install, import tkinter fails.



I've tried to reinstall python3-tk and reinstall python3 altogether.



The OS is ubuntu 17.10 with the default GNOME desktop environment, and the python 3 version is python 3.6.3.



I'm out of ideas on how to fix this. A lot of my projects rely on tkinter for the interface, and I can't make it work.










share|improve this question





















  • How are you exactly importing the module?
    – Jacob Vlijm
    Feb 15 at 7:59










  • In the python3 console, import tkinter as tk
    – Dogeek
    Feb 15 at 10:31














up vote
1
down vote

favorite












The python 2 install on my ubuntu 17.10 install works fine, Tkinter is imported without errors, but on the python 3 install, import tkinter fails.



I've tried to reinstall python3-tk and reinstall python3 altogether.



The OS is ubuntu 17.10 with the default GNOME desktop environment, and the python 3 version is python 3.6.3.



I'm out of ideas on how to fix this. A lot of my projects rely on tkinter for the interface, and I can't make it work.










share|improve this question





















  • How are you exactly importing the module?
    – Jacob Vlijm
    Feb 15 at 7:59










  • In the python3 console, import tkinter as tk
    – Dogeek
    Feb 15 at 10:31












up vote
1
down vote

favorite









up vote
1
down vote

favorite











The python 2 install on my ubuntu 17.10 install works fine, Tkinter is imported without errors, but on the python 3 install, import tkinter fails.



I've tried to reinstall python3-tk and reinstall python3 altogether.



The OS is ubuntu 17.10 with the default GNOME desktop environment, and the python 3 version is python 3.6.3.



I'm out of ideas on how to fix this. A lot of my projects rely on tkinter for the interface, and I can't make it work.










share|improve this question













The python 2 install on my ubuntu 17.10 install works fine, Tkinter is imported without errors, but on the python 3 install, import tkinter fails.



I've tried to reinstall python3-tk and reinstall python3 altogether.



The OS is ubuntu 17.10 with the default GNOME desktop environment, and the python 3 version is python 3.6.3.



I'm out of ideas on how to fix this. A lot of my projects rely on tkinter for the interface, and I can't make it work.







17.10 python3 tkinter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 15 at 7:27









Dogeek

61




61











  • How are you exactly importing the module?
    – Jacob Vlijm
    Feb 15 at 7:59










  • In the python3 console, import tkinter as tk
    – Dogeek
    Feb 15 at 10:31
















  • How are you exactly importing the module?
    – Jacob Vlijm
    Feb 15 at 7:59










  • In the python3 console, import tkinter as tk
    – Dogeek
    Feb 15 at 10:31















How are you exactly importing the module?
– Jacob Vlijm
Feb 15 at 7:59




How are you exactly importing the module?
– Jacob Vlijm
Feb 15 at 7:59












In the python3 console, import tkinter as tk
– Dogeek
Feb 15 at 10:31




In the python3 console, import tkinter as tk
– Dogeek
Feb 15 at 10:31















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006373%2fimport-tkinter-fails-in-ubuntu-on-python-3-6%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006373%2fimport-tkinter-fails-in-ubuntu-on-python-3-6%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?