当我使用不同的系统时出现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'
When I use my system, there is no error in my python codes. When I use another system I get this error:(both systems have same version of 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'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个提示。
出现此错误的系统安装了旧软件包。
虽然“python 版本”可能相同,但安装的软件包集不同。
There's a hint.
The system that gets this error has old packages installed.
While the "version of python" may be the same, the set of installed packages is different.