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

How to 'rosrun' in python 3.6 instead of python 3.8 in ROS noetic?

asked 2022-07-28 10:07:35 -0500

00kyoung gravatar image

Hi

I'm using ROS on windows.

In noetic, default python version is python 3.8.3, so if I 'rosrun', the node executes in python 3.8.3

However, I want to 'rosrun' in python 3.6.3 because the device that I want to run only executes in python 3.6.3

How can I run the node in python 3.6.3?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-08-04 09:41:08 -0500

timRO gravatar image

Hello,

i use "update-alternatives" command to do this. Have a look to this tutorial https://linuxhint.com/update_alternatives_ubuntu/

The exemple was for python 2 and python 3 it also works with version 3.x and 3.y .

edit flag offensive delete link more

Comments

Thanks for your answer, but I'm using ROS on Windows so the hyperlink doesn't help me a lot. Thx anyway!

00kyoung gravatar image 00kyoung  ( 2022-08-05 03:53:26 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-07-28 10:07:35 -0500

Seen: 335 times

Last updated: Aug 04 '22