No module named catkin_pkg.package

  • 加了个模块,再次catkin_make报错

ImportError: “from catkin_pkg.package import parse_package” failed: No module named catkin_pkg.package
Make sure that you have installed “catkin_pkg”, it is up to date and on the PYTHONPATH.

  • 解决方法
cd /
pip install catkin_pkg

切换到根目录是必须的

  • 继续报错可能还需要安装rospkg
cd /
pip install rospkg
    原文作者:PIBOT导航机器人
    原文地址: https://www.jianshu.com/p/e964928d6c62
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞