ModuleNotFoundError: 没有带有 pip 的名为“rosbag"的模块 [英] ModuleNotFoundError: No module named 'rosbag' with pip
问题描述
我正在尝试使用 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屋!