zoukankan      html  css  js  c++  java
  • catkin与python的兼容问题

    CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
      execute_process(/home/wu/anaconda3/bin/python
      "/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py"
      "/opt/ros/kinetic/share/catkin/cmake/../package.xml"
      "/home/wu/ros_catkin/build/catkin/catkin_generated/version/package.cmake")
      returned error code 1
    Call Stack (most recent call first):
      /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
      /opt/ros/kinetic/share/catkin/cmake/all.cmake:151 (_catkin_package_xml)
      /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
      CMakeLists.txt:52 (find_package)
    

      在catkin_make的时候发生这种错,和明显和anaconda发生了冲突,anaconda将默认的pyhon版本改变了,导致了catkin_make发生了错误。

    解决方法

       检查一下Python的版本: ~$ python -V
      检查一下catkin依赖的Python版本: ~$ dpkg -L python-catkin-pkg
    如果Python的版本和catkin依赖的版本不一样,说明Python依赖包有问题,解决办法:

    conda install setuptools  
      
    pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools 
  • 相关阅读:
    HTML link标签media参数
    初始化一个本地GIT仓储
    总结一下js的原型和原型链
    根据用户注册信息推荐 代码部分
    冷启动问题概述
    概率图模型
    LFM 隐语义模型
    item Collaborative Filtering
    推荐系统评测
    user Collaborative Filtering
  • 原文地址:https://www.cnblogs.com/wjx-zjut/p/8805537.html
Copyright © 2011-2022 走看看