小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
一键安装ros报错
-
bc@ubuntu:~$ roscore
Traceback (most recent call last):
File "/usr/bin/roscore", line 72, in <module>
import roslaunch
File "/usr/lib/python3/dist-packages/roslaunch/init.py", line 62, in <module>
from .scriptapi import ROSLaunch
File "/usr/lib/python3/dist-packages/roslaunch/scriptapi.py", line 42, in <module>
import roslaunch.parent
File "/usr/lib/python3/dist-packages/roslaunch/parent.py", line 54, in <module>
import roslaunch.server
File "/usr/lib/python3/dist-packages/roslaunch/server.py", line 79, in <module>
from rosgraph_msgs.msg import Log
ImportError: cannot import name 'Log' from 'rosgraph_msgs.msg' (/opt/ros/foxy/lib/python3.8/site-packages/rosgraph_msgs/msg/init.py) -
@2150671536 问题原因Python环境没配置好,可以使用命令update-alternatives --config python