• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

ROS 2 colcon build报错SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip

武飞扬头像
Destiny_-Sky
帮助1

我们在ROS 2 中使用colcon build时,出现以下问题

SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.学新通

我们可以尝试运行构建完毕的程序,是否能正常执行(或者我们可以使用以下指令把ROS2/examples 拉下来测试一下)

git clone -b humble --recursive https://github.com/ros2/examples.git  src

依旧colcon build ,依旧出现这样的警告,既然官方提供的源码都出现警告,那就估计是python安装包版本的问题了,python3.8.3是官方指定的,不太可能有问题。顺着这个线索,找到了这个贴子

SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. - ROS Answers: Open Source Q&A Forum

按照帖子提示,可能是我们的版本过于新了,将我们的setuptools版本降下来就可以解决。

pip install setuptools==58.2.0

学新通

 接着我们查看一下我们的版本是否已经更换,执行以下指令

  1.  
    python3
  2.  
     
  3.  
    import setuptools
  4.  
     
  5.  
    print(setuptools.__version__)

学新通

 版本更新后,我们再次尝试colcon build,

学新通

 我们可以看到问题解决。

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhfighga
系列文章
更多 icon
同类精品
更多 icon
继续加载