I have ROS noetic installed on Ubuntu 20.04 with Python 3.8. I would like to upgrade my Python to 3.9 and make it the default version. Will it have any effect on my ROS installation ?
-
$\begingroup$ No it will not have any effects, since 3.9 is backwards compatible with 3.8. This is also a similar question to this one. Also if you want a clear answer on how to do it this might be helpful. $\endgroup$– rubimatCommented Nov 19, 2023 at 20:03
1 Answer
If you change the python version in the environment you should build your workspace from source with the new python version as we use python bindings in many places in the codebase. There are things in the system that will continue to work due to the compatibility but depending on what features you use your mileage will vary, and you may get explainable crashes on things where python bindings are used.
To be very specific don't use debian packages of ROS with a different version of python on your system.