Import tkinter fails in ubuntu on python 3.6

Clash 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.
17.10 python3 tkinter
add a comment |Â
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.
17.10 python3 tkinter
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
add a comment |Â
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.
17.10 python3 tkinter
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
17.10 python3 tkinter
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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