Ros2编译python节点报错SetuptoolsDeprecationWarning

arslantech@ubuntu:~/pro/arslan-saturn-ros2$ colcon build
Starting >>> bt_gatt_service
--- stderr: bt_gatt_service                    
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< bt_gatt_service [6.00s]

Summary: 1 package finished [10.7s]
  1 package had stderr output: bt_gatt_service

报错原因是setuptools版本太新了。
降低版本到58.2.0,再次尝试编译问题解决!!

pip install setuptools==58.2.0

你可能感兴趣的:(机器人开发,python,开发语言,ros2)