Estoy usando ipython3, instalado en Ubuntu con apt-get. No puedo usar la función pegar magia, se queja de faltar Tkinter. Pero tengo Tkintery lo mismo funciona bien en ipython (2). ¿Lo que da?
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.

import Tkinter; print(Tkinter)?/usr/lib/python2.7/lib-tk/Tkinter.pycen 2.7, error de importación en ipython3Respuestas:
El comentario de minrk me llevó por el buen camino, y lo arreglé con el siguiente paquete.
sudo apt-get install python3-tkfuente
%pastela dosis no funciona incluso después de la instalaciónpython3-tk.%cpastedosisPara ser claros extra: Wim respuesta 's también trabaja para python2.7, de todas las versiones sólo tiene que ejecutar:
como eludió Cespinoza
fuente