首页 > Web开发 > 详细

networkx AttributeError: 'DiGraph' object has no attribute 'edge'

时间:2020-07-13 12:35:01      阅读:309      评论:0      收藏:0      [点我收藏+]

 

 

[root@kunpeng82 Ryu-SDN-IP]# pip3 show networkx
Name: networkx
Version: 2.4
Summary: Python package for creating and manipulating graphs and networks
Home-page: http://networkx.github.io/
Author: Aric Hagberg
Author-email: hagberg@lanl.gov
License: BSD
Location: /usr/local/lib/python3.6/site-packages
Requires: decorator
[root@kunpeng82 Ryu-SDN-IP]# pip3 install -I networkx==1.11
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting networkx==1.11
[root@kunpeng82 Ryu-SDN-IP]# pip3 install --upgrade  networkx==1.11
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting networkx==1.11
  Using cached https://files.pythonhosted.org/packages/d3/2c/e473e54afc9fae58dfa97066ef6709a7e35a1dd1c28c5a3842989322be00/networkx-1.11-py2.py3-none-any.whl
Requirement already up-to-date: decorator>=3.4.0 in /usr/local/lib/python3.6/site-packages (from networkx==1.11)
Installing collected packages: networkx
  Found existing installation: networkx 2.4
    Uninstalling networkx-2.4:
      Successfully uninstalled networkx-2.4
Successfully installed networkx-1.11
[root@kunpeng82 Ryu-SDN-IP]# pip3 show networkx
Name: networkx
Version: 1.11
Summary: Python package for creating and manipulating graphs and networks
Home-page: http://networkx.github.io/
Author: NetworkX Developers
Author-email: networkx-discuss@googlegroups.com
License: BSD
Location: /usr/local/lib/python3.6/site-packages
Requires: decorator
[root@kunpeng82 Ryu-SDN-IP]# 

 

networkx AttributeError: 'DiGraph' object has no attribute 'edge'

原文:https://www.cnblogs.com/dream397/p/13292015.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!