Windows 8中的ELought PyLab / Canopy - (学术版)缺少matplotlib

时间:2013-10-04 23:06:57

标签: python matplotlib enthought canopy

我安装了Canopy的学术版本,并在桌面上安装了PyLab,Canopy快捷方式。 当我尝试从桌面上的快捷方式运行PyLab时,我得到一个打开的命令窗口:

UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
  warn("The top-level `frontend` package has been deprecated. "
Python 2.7.3 | 64-bit | (default, Aug  8 2013, 05:30:12) [MSC v.1500 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- 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.
[TerminalIPythonApp] WARNING | Eventloop or matplotlib integration failed. Is matplotlib installed?  

奇怪的是,当我从命令行运行python2.7时,它会将matplotlib列为已安装。当我运行Canopy包管理器时,它说安装了matplotlib 1.3.0。

这里有什么问题? 感谢

1 个答案:

答案 0 :(得分:1)

抱歉,通过Canopy 1.1.1突破了Pylab快捷方式。您可以手动编辑它(在目标路径中将“System”替换为“User”),或从“开始”菜单中打开“Canopy命令提示符”,然后键入ipython --pylab=qt

另请注意,Canopy GUI应用程序本身的Python shell面板默认以Pylab模式运行Ipython QtConsole,可能是运行Pylab的最简单方法,以及链接到Pylab会话的编辑器。