当我使用我的系统时,我的Python代码中没有错误。当我使用另一个系统时,我得到这个错误:(两个系统都有相同版本的python)python错误,当我使用不同的系统!
/usr/lib/pymodules/python2.6/matplotlib/numerix/__init__.py:18: DeprecationWarning:
**********************************************************
matplotlib.numerix and all its subpackages are deprecated.
They will be removed soon. Please use numpy instead.
**********************************************************
warnings.warn(msg, DeprecationWarning)
/usr/lib/pymodules/python2.6/networkx/generators/hybrid.py:16: DeprecationWarning: the sets module is deprecated
import sets
Traceback (most recent call last):
File "./check_2.py", line 79, in <module>
G.add_edge(u,v,times=[t])
TypeError: add_edge() got an unexpected keyword argument 'times'
matplotlib版本也是一样吗? – kirbuchi 2010-07-30 11:17:17
不,它似乎不是! – masti 2010-07-30 11:22:56
@masti:错误来自'networkx'包,因此需要先检查它。 – SilentGhost 2010-07-30 11:24:31