您当前的位置: 首页 >  ar
  • 5浏览

    0关注

    483博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

ROS2报错:SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other...

高精度计算机视觉 发布时间:2022-08-29 20:52:58 ,浏览量:5

因为一直用c++,所以对ROS+python的调试相对较少,今天碰到一个用python玩的项目,发现报错,

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

然后,老套路,把ros2/example拉下来,测试一下rospy,

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

 

在python中试了一下,不行 

>>> print(setuptools.__version__) Traceback (most recent call last):   File "", line 1, in NameError: name 'setuptools' is not defined

然后,改了一点

>>> import setuptools >>> print(setuptools.__version__)

59.6.0

那有可能是版本太新了。按照贴子里面提到的

pip install setuptools==58.2.0

问题解决。

本文结束。

关注
打赏
1661664439
查看更多评论
立即登录/注册

微信扫码登录

0.0392s