ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The binary packages provided by the buildfarm target Python 2 for ROS Melodic. Melodic does not support Python 3 out-of-the-box. See REP-3: Target platforms.
The first ROS 1 release with official support for Python 3 will be ROS Noetic Ninjemys (ros-infrastructure/rep#202). See also wiki/UsingPython3 and wiki/noetic/Migration.
If you need Python 3 with Melodic, you'll have to build it from source. See #q237613 for a Q&A with some example workflows.
Note: building (base) ROS from source means you cannot use apt
any more to install additional packages (as those will only work with Python 2).