zoukankan      html  css  js  c++  java
  • networkx AttributeError: 'DiGraph' object has no attribute 'edge'

    [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]# 
  • 相关阅读:
    Visual Studio 和 c# 正则表达式
    程序员DD 《Spring boot教程系列》补充
    c# 多线程编程中AutoResetEvent和ManualResetEvent
    c# 事件和EventManager
    卸载重装Mysql
    c# 语法要点速览
    在高分屏正确显示CHM文件
    ss user-rule自定义规则并硬连接到OneDrive进行自动同步
    利用webmagic获取天猫评论
    使用Selenium对新浪微博模拟登录
  • 原文地址:https://www.cnblogs.com/dream397/p/13292015.html
Copyright © 2011-2022 走看看