简体   繁体   English

ImportError:没有名为 ryu.cmd.manager 的模块

[英]ImportError : No module named ryu.cmd.manager

I wanted to try the command: pythonpath=.我想试试这个命令:pythonpath=. ./bin/ryu-manager ryu/app/simple_switch.py in ryu controller and this is the error message i got : ./bin/ryu-manager ryu/app/simple_switch.py​​ 在 ryu 控制器中,这是我收到的错误消息:

    Traceback (most recent call last):
  File "./bin/ryu-manager", line 18, in <module>
    from ryu.cmd.manager import main
ImportError: No module named ryu.cmd.manager

I am using Ubuntu 18.04.4 LTS, python 2.7.17 and ryu 4.34我正在使用 Ubuntu 18.04.4 LTS、python 2.7.17 和 ryu 4.34

I don't know if this will help, I am new to this too.我不知道这是否会有所帮助,我也是新手。 try running not using python, but run ryu-manager command directly.尝试不使用 python 运行,而是直接运行 ryu-manager 命令。

Like: May Be you are running like this喜欢:也许你是这样跑步的

~/ryu/$ python ryu-manager ryu/app/simple_switch.py

But try running ryu-manager directly like this:但是尝试像这样直接运行 ryu-manager:

~/ryu/$ ryu-manager ryu/app/simple_switch.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM