ModuleNotFoundError: 没有带有 pip 的名为“rosbag"的模块 [英] ModuleNotFoundError: No module named 'rosbag' with pip

查看:26
本文介绍了ModuleNotFoundError: 没有带有 pip 的名为“rosbag"的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 pip 安装 rosbag:

I am trying to install rosbag using pip:

pip install python-rosbag

但我收到以下错误:

(base) C:\Users\santhoshe.e\annotator-master>pip install python-rosbag收集python-rosbag错误:找不到满足python-rosbag要求的版本(来自版本:无)错误:找不到与 python-rosbag 匹配的分布

(base) C:\Users\santhoshe.e\annotator-master>pip install python-rosbag Collecting python-rosbag ERROR: Could not find a version that satisfies the requirement python-rosbag (from versions: none) ERROR: No matching distribution found for python-rosbag

除了使用 pip 之外,如何在 Windows 中安装 rosbag?还是我用的pip不对?

How can I install rosbag in windows other than using pip? Or the pip I used is wrong?

推荐答案

pyrosbag 实际上是与 rosbag 不同的包.

pyrosbag is actually a different package from rosbag.

正确的方法应该是

conda install -c conda-forge ros-rosbag 

之后,您可以在 Python 中运行 import rosbag.

After that, you can run import rosbag in Python.

这篇关于ModuleNotFoundError: 没有带有 pip 的名为“rosbag"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆