ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Does ROS2 support python 3.11?

asked 2023-07-10 04:51:11 -0500

songyuc gravatar image

Hi, guys! I want to know whether ROS2 supports python 3.11, currently?

Your answer and guide will be appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2023-07-10 09:17:09 -0500

gvdhoorn gravatar image

updated 2023-07-10 09:17:40 -0500

Officially? No.

Iron requires Python 3.8.2 at a minimum (on Windows), and various versions of Python 3 on other platforms.

The newest would be 3.10.8 on macOS, but on Ubuntu (jammy), it standardised on 3.10.6.

This means that the Ubuntu binary packages (which is what most ROS users will be using to install ROS 2 Iron) will only be built for Python 3.10.6. Note that some of the core ROS 2 Python packages (such as rclpy) are mixed Python & C/C++, so using a different interpreter is not always just a matter of updating the path to the python binary.

See REP 2000: ROS 2 Releases and Target Platforms: Iron Irwini (May 2023 - November 2024) for all the details.

Note: you may be able to build ROS 2 Iron from source for your desired Python 3 version, but no one can guarantee you it will work, and it would not be officially supported.

edit flag offensive delete link more


Thank you sincerely for your guide!

songyuc gravatar image songyuc  ( 2023-07-10 19:40:49 -0500 )edit

Could you please mark the question as answered by ticking the checkmark (✓) to the left of the answer if you feel it has been answered? Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2023-07-11 01:35:51 -0500 )edit

OK, I did it.

songyuc gravatar image songyuc  ( 2023-07-12 08:28:28 -0500 )edit

Hi! Is there any official plan of newest ROS2 like Ridley, for the support on Win11?

songyuc gravatar image songyuc  ( 2023-07-12 08:33:04 -0500 )edit

Not that I know of, but I would not be the person in charge of that.

You'd want to ask the main ROS 2 developers.

gvdhoorn gravatar image gvdhoorn  ( 2023-07-12 09:21:14 -0500 )edit

Got it, and thanks again.

songyuc gravatar image songyuc  ( 2023-07-12 09:22:43 -0500 )edit

Question Tools

1 follower


Asked: 2023-07-10 04:51:11 -0500

Seen: 1,041 times

Last updated: Jul 10 '23