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

发布于 2025-02-12 01:41:48 字数 347 浏览 1 评论 0原文

我想尝试命令:pythonpath =。 ./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

我正在使用ubuntu 18.04.4 lts,python 2.7.17和ryu 4.34

I wanted to try the command: pythonpath=. ./bin/ryu-manager ryu/app/simple_switch.py in ryu controller and this is the error message i got :

    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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

知你几分 2025-02-19 01:41:48

我不知道这是否会有所帮助,我也是新手。
尝试不使用Python,而是直接运行Ryu-Manager命令。

喜欢:
可能是您正在像这样

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

一样运行,但是尝试直接运行Ryu-Manager:

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

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.

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/$ ryu-manager ryu/app/simple_switch.py
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文