问题描述
在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
完毕,可以编译去了~