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

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

Comments

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 site:answers.ros.org).

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

1 Answer

Sort by ยป oldest newest most voted
0

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

Stats

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

Seen: 710 times

Last updated: Aug 17 '18