Help!!! 使用python做科学计算,安装epd之后,启动ipython出错。

软件和网站开发以及相关技术探讨
回复
头像
cuipanda
帖子: 7
注册时间: 2011-06-03 14:28

Help!!! 使用python做科学计算,安装epd之后,启动ipython出错。

#1

帖子 cuipanda » 2012-05-09 7:03

全部信息如下:很困惑是哪里出的问题。
Python 2.7.2 |EPD 7.2-2 (32-bit)| (default, Jul 5 2011, 21:58:24)
Type "copyright", "credits" or "license" for more information.

IPython 0.12 -- 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.
%guiref -> A brief reference about the graphical user interface.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/ipkernel.pyc in init_kernel(self)
593 try:
594 gui, backend = pylabtools.find_gui_and_backend(self.pylab)
--> 595 shell.enable_pylab(gui, import_all=self.pylab_import_all)
596 except Exception:
597 self.log.error("Pylab initialization failed", exc_info=True)

/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in enable_pylab(self, gui, import_all)
2605 ns = {}
2606 try:
-> 2607 gui = pylab_activate(ns, gui, import_all, self)
2608 except KeyError:
2609 error("Backend %r not supported" % gui)

/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/IPython/core/pylabtools.pyc in pylab_activate(user_ns, gui, import_all, shell)
328 """
329 gui, backend = find_gui_and_backend(gui)
--> 330 activate_matplotlib(backend)
331 import_pylab(user_ns, import_all)
332 if shell is not None:

/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/IPython/core/pylabtools.pyc in activate_matplotlib(backend)
221 # This must be imported last in the matplotlib series, after

222 # backend/interactivity choices have been made

--> 223 import matplotlib.pylab as pylab
224
225 # XXX For now leave this commented out, but depending on discussions with


/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/matplotlib/pylab.py in <module>()
262 from numpy.linalg import *
263
--> 264 from matplotlib.pyplot import *
265
266 # provide the recommended module abbrevs in the pylab namespace


/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/matplotlib/pyplot.py in <module>()
93
94 from matplotlib.backends import pylab_setup
---> 95 new_figure_manager, draw_if_interactive, _show = pylab_setup()
96
97 @docstring.copy_dedent(Artist.findobj)

/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/matplotlib/backends/__init__.py in pylab_setup()
23 backend_name = 'matplotlib.backends.%s'%backend_name.lower()
24 backend_mod = __import__(backend_name,
---> 25 globals(),locals(),[backend_name])
26
27 # Things we pull in from all backends


/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/matplotlib/backends/backend_wxagg.py in <module>()
21
22 from backend_agg import FigureCanvasAgg
---> 23 import backend_wx # already uses wxversion.ensureMinimal('2.8')
24 from backend_wx import FigureManager, FigureManagerWx, FigureCanvasWx, \
25 FigureFrameWx, DEBUG_MSG, NavigationToolbar2Wx, error_msg_wx, \

/home/cc/program/epd-7.2-2-rh5-x86/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py in <module>()
63 backend_version = wx.VERSION_STRING
64 except ImportError:
---> 65 raise ImportError(missingwx)
66
67 # Extra version check in case wxversion lacks AlreadyImportedError;


ImportError: Matplotlib backend_wx and backend_wxagg require wxPython >=2.8
Error initializing pylab, pylab mode will not be active
头像
月下叹逍遥
论坛版主
帖子: 33994
注册时间: 2010-10-07 14:23
系统: Archdows10
来自: 某系某星某洲某国某省某市
联系:

Re: Help!!! 使用python做科学计算,安装epd之后,启动ipython出错。

#2

帖子 月下叹逍遥 » 2012-05-09 7:44

做计算竟然用python。。。
浮生七十今三十,从此凄惶未可知
头像
tangboyun
帖子: 701
注册时间: 2009-07-25 1:57
联系:

Re: Help!!! 使用python做科学计算,安装epd之后,启动ipython出错。

#3

帖子 tangboyun » 2012-05-09 8:39

月下叹逍遥 写了:做计算竟然用python。。。
Python科学计算
只要有那几个常用线代库接口,包装下就行。
https://github.com/tangboyun
http://tangboyun.is-programmer.com/
提问的智慧————Eric Steven Raymond
回答的智慧————Andrew Clarke
吾尝终日而思矣,不如须臾之所学也;吾尝跂而望矣,不如登高之博见也。
急急急标题什么的,最讨厌了!
急急复急急,急急何其多,我生待急急,万事急急急。
头像
hanice
帖子: 7
注册时间: 2011-10-09 14:22

Re: Help!!! 使用python做科学计算,安装epd之后,启动ipython出错。

#4

帖子 hanice » 2012-06-19 1:10

我之前试图安装scipy总是出错,后来没办法装了epd,一切正常。
科学计算相关的库太庞杂了,安装的确不简单。
可惜我看不出问题出在哪里,帮不了楼主。
要不你自己装下试试?不要用epd.
philwong
帖子: 9
注册时间: 2012-10-17 15:05
系统: ubuntu 12.04

Re: Help!!! 使用python做科学计算,安装epd之后,启动ipython出错。

#5

帖子 philwong » 2012-10-22 20:22

嗯,其实可以用 Python 做科学计算的,也不需要自己封装吧,需要的基本都能找到。这就是 Python 的好处嘛!
回复