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

is there any way of using python 3.5 in ROS kinetic

asked 2018-08-09 05:41:19 -0500

rama_bhuyan gravatar image

updated 2018-08-17 06:55:46 -0500

I have one python library which is in python3.5. but ROS works only with python 2.7.

can I get some idea , how to access that library in my ros environment?

edit retag flag offensive close merge delete


If you want to use a different Python version, you'll probably have to install ROS from sources, all the while keeping an eye on the commands to make sure you're using the correct Python interpreter binary.

There have been Q&As about this, I recommend using google (with

gvdhoorn gravatar image gvdhoorn  ( 2018-08-10 02:56:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-17 06:09:01 -0500

Ridhwanluthra gravatar image

There is a very hacky method that I have successfully used before. This may not work in many cases. So, You source a terminal with ROS environment variables and run roscore. In another terminal first source ros and then python3 environment variables. now run your python3 node here. This is possible coz of the amazing backporting capabilities of python. Again this may not work in every case. So its your luck

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-08-09 05:41:19 -0500

Seen: 684 times

Last updated: Aug 17 '18