我正在使用ipython3
,在Ubuntu上安装apt-get
。我无法使用粘贴魔术功能,它抱怨缺少Tkinter
。但是我确实有Tkinter
,同样的事情在ipython(2)上也能正常工作。是什么赋予了?
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.
/usr/lib/python2.7/lib-tk/Tkinter.pyc
在2.7上,ipython3上的导入错误
import Tkinter; print(Tkinter)
什么?