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

这篇具有很好参考价值的文章主要介绍了ROS 2 colcon build报错SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

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

SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.setuptoolsdeprecationwarning: setup.py install is deprecated. use build and,ROS2常见错误,python

我们可以尝试运行构建完毕的程序,是否能正常执行(或者我们可以使用以下指令把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

setuptoolsdeprecationwarning: setup.py install is deprecated. use build and,ROS2常见错误,python

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

python3 

import setuptools

print(setuptools.__version__)

setuptoolsdeprecationwarning: setup.py install is deprecated. use build and,ROS2常见错误,python

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

setuptoolsdeprecationwarning: setup.py install is deprecated. use build and,ROS2常见错误,python

 我们可以看到问题解决。文章来源地址https://www.toymoban.com/news/detail-606390.html

到了这里,关于ROS 2 colcon build报错SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 虚拟机 + Ubuntu22.04 + ros2 (humble) colcon build turtlebot3_node失败的解决方案

    在虚拟机Ubuntu22.04中安装了ROS2(humble),下载turtlebot3。在 colcon build --symlink-install 编译的过程中turtlebot3_Fake_node一直失败,无法正常运行,影响后面的仿真测试。 查阅相关资料后发现问题主要出在 缺少ROS2 相关依赖Ubuntu 版本匹配 。 (1)首先通过 lsb_release-a 查看系统版本 查到

    2024年02月09日
    浏览(33)
  • 已解决Building wheel for lxml (setup.py) … error

    已解决(pip安装第三方模块lxml模块报错)Building wheels for collected packages: lxml Building wheel for lxml (setup.py) … error error: subprocess-exited-with-error python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess,and is likely not a problem with pip. ERROR: Failed building wheel for lxml n

    2024年02月13日
    浏览(30)
  • pip install basicsr安装时在Preparing metadata (setup.py)卡住

    pip install basicsr安装时在Preparing metadata (setup.py)卡住 查了很多资料也没解决,最后从pypi下载包通过 命令 内联代码片 。 会产生新的报错,报错信息中有一条说的需要torch,结合basicsr在pypi上的安装包说明,判断应该是依赖pytorch导致的该问题,到pytorch官网找到相关版本,复制安

    2024年02月12日
    浏览(33)
  • setup.py方式打包自己的python代码并可以用pip install安装

    注意setup.py文件和MANIFEST.in文件需要放在和你需要打包的目录同一级下 ,例如我这里需要打包的就是webconsole文件夹(这里webconsole文件夹指的是业务代码文件夹也就是我下图圈出来的文件夹,而不是最外层那个webconsole项目目录文件夹,因为我这里起了相同的文件夹名称,怕各

    2024年04月26日
    浏览(34)
  • 已解决DEPRECATION: phrasetree is being installed using the legacy ‘setup.py install’ method, because it

    已解决DEPRECATION: phrasetree is being installed using the legacy ‘setup.py install’ method, because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the ‘–use-pep517’ option. Discussion can be found at https://github.com/pypa/pi

    2023年04月16日
    浏览(32)
  • 已解决 DEPRECATION: configobj is being installed using the legacy ‘setup.py install‘ method, because i

    已解决(pip安装fitz模块报错)DEPRECATION: configobj is being installed using the legacy ‘setup.py install’ method, because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the ‘–use-pep517’ option. Discussion can be found

    2023年04月20日
    浏览(31)
  • python distutils打包C/C++模块,执行python setup.py build_ext --inplace时报错cl

    python可以把C/C++代码编译并打包为pyd模块,从而可以使python脚本直接调用C/C++模块功能。 我在执行python setup.py build_ext --inplace时遇到了缺失cl.exe的错误提示,然后用pip安装了cl。 再次编译,提示cl: error: no such option: -I,改变cl版本仍然不行,百思不得其解。 后来意识到C/C++模块

    2024年02月06日
    浏览(33)
  • 【问题记录】Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-*

            在Linux中使用pip安装命令时出现报错:Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-*         安装了不适合当前Python版本的pip,例如Python3.5安装了带有f-字符串(Python3.5后才支持的一种新的增强型字符串格式化方式)代码的pip         方法一:更新

    2024年02月16日
    浏览(34)
  • Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-... 解决方法

    今天在虚拟机上配置Python的环境,安装pylint的时候报错: 一开始以为是pip不够新,于是更新了一下pip: 提示更新成功,但安装pylint依旧报同样的错。 仔细阅读黄字提示后发现:不应该使用sudo,去掉sudo后尝试安装: 果然就没有问题了。

    2024年02月12日
    浏览(34)
  • 解决报错:python setup.py egg_info did not run successfully

    记录一下安装detectron2过程的解决debug经验,报错如下,主要是python setup.py egg_info did not run successfully: 网上试了很多方法 最后通过下面的方法解决的 然后安装对应的步骤就可以了

    2024年02月16日
    浏览(30)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包