zoukankan      html  css  js  c++  java
  • ryu ImportError: No module named ryu.cmd.manager

    [root@kunpeng82 Ryu-SDN-IP]#  ./bin/sdnip-mgr --sdn-ip-cfg-file ./config.json  --observe-links sdnip.arp_proxy sdnip.fwd_bgp sdnip.sdn_ip
    Traceback (most recent call last):
      File "./bin/sdnip-mgr", line 3, in <module>
        from ryu.cmd.manager import main
    ImportError: No module named ryu.cmd.manager
    [root@kunpeng82 Ryu-SDN-IP]#
    [root@kunpeng82 Ryu-SDN-IP]# pip list | grep ryu
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    [root@kunpeng82 Ryu-SDN-IP]# pip3 list | grep ryu       ---装了
    DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
    ryu (4.34)
    [root@kunpeng82 Ryu-SDN-IP]#
    #!/usr/bin/env python                ------------改成python3
    
    from ryu.cmd.manager import main
    from sdnip import conf_mgr, arp_proxy
    
    
    main()
  • 相关阅读:
    基于NodeJS的全栈式开发
    Android 反编译apk 详解
    AngularJS 中文资料+工具+库+Demo 大搜集
    Mongodb集群搭建的三种方式
    Ubuntu下解决bash 没有那个文件或目录的方法
    ubuntu12.04 安装配置jdk1.7
    CentOS怎样查看系统信息
    Ubuntu 安装 Redis
    Redis快速入门
    js去掉双引号
  • 原文地址:https://www.cnblogs.com/dream397/p/13288152.html
Copyright © 2011-2022 走看看