How to use ROS Melodic with Python 3?

How can we work ROS Melodic with Python3? I have already installed ROS Melodic into my Ubuntu 18.04. It already using Python 2.7. But I need to use it with Python 3.6. I'm trying to have a new version because 2.7 version will expire on the next Year January. So is there any way to work ROS with Python without any errors. I have tried several methods but it didn't work for me. I need to install it in the system, not the virtual environments.

If there is any reliable way to work ROS with Anaconda workspace also welcome.

1 Answer

There is a way to build ROS Melodic for Python 3 but you are going to have quite some problems using some of the packages such as cv_bridge.

I would recommend going for ROS Noetic if you can since it should allow you to work with Python 3 natively.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like