Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using ipython3 which I installed on Ubuntu with apt-get. I can't use he paste magic function, it complains about missing Tkinter. But I do have Tkinter and the same thing works fine on ipython (2). What gives?

Python 3.2.3 (default, Oct 19 2012, 19:53:16) 
Type "copyright", "credits" or "license" for more information.

IPython 0.13.1.rc2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: %paste
ERROR: Getting text from the clipboard on this platform requires Tkinter.
share|improve this question
What do you get from import Tkinter; print(Tkinter)? –  minrk Feb 11 '13 at 1:12
/usr/lib/python2.7/lib-tk/Tkinter.pyc on 2.7, import error on ipython3 –  wim Feb 11 '13 at 1:14

1 Answer 1

up vote 10 down vote accepted

minrk comment got me on the right track, and I've fixed it with the following package.

sudo apt-get install python3-tk

share|improve this answer
+1 is the same fot python2.7: sudo apt-get install python-tk –  cespinoza May 28 '13 at 13:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.