失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > ROS使用问题之一:Make sure that you have installed “catkin_pkg“ it is up to date and on the PYTHONPATH.

ROS使用问题之一:Make sure that you have installed “catkin_pkg“ it is up to date and on the PYTHONPATH.

时间:2018-09-03 06:53:40

相关推荐

ROS使用问题之一:Make sure that you have installed “catkin_pkg“  it is up to date and on the PYTHONPATH.

问题描述

在Catkin_make时遇到问题:Make sure that you have installed “catkin_pkg”, it is up to date and on the PYTHONPATH.

猜测和昨天安装最新版Cmake和Python有关,尝试了添加路径和安装包均无果。

解决方案:

1.根据python版本修改Catkin_make解释器:打开新终端,输入以下命令,编辑脚本

sudo gedit /opt/ros/kinetic/bin/catkin_make

提示:我的ros版本是kinetic,如果你是其它的,只需要修改kinetic成melodic等版本

2.根据python版本修改Catkin_make解释器:打开新终端,输入以下命令,编辑脚本

将首行#!/usr/bin/python修改为

#!/usr/bin/python2

完毕,可以编译去了~

如果觉得《ROS使用问题之一:Make sure that you have installed “catkin_pkg“ it is up to date and on the PYTHONPATH.》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。