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

Use simultaneously ROS-Kinetic and Conda ?

asked 2020-03-17 18:07:23 -0600

victor_234 gravatar image

Is there some way to simultaneously use ROS-Kinetic and conda environment? I need to run a script in a conda environment with python 3 and at the same time use ROS-Kinetic built with python 2.7, to use that script as one more node on ROS.

edit retag flag offensive close merge delete

Comments

1

This reads like a duplicate of #q346714.

Could you please clarify?

If it is a duplicate, please close this question. Please don't post duplicates.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-18 03:31:49 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-17 22:27:37 -0600

Yes this is possible, but you need to be careful about ~/.bashrc file, because the source commands there can change your environments paths. I will suggest not to add source ~/catkin_ws/devel_setup.bash to ~/.bashrc, just manually do for each terminal if you are not that lazy.

and then create a virtual env with conda with your desired python3 version and your packages that you would like to use.

edit flag offensive delete link more

Comments

I don't quite understand what you want to tell me. Could you explain it to me in more detail?

I manage to work with conda and ROS, modifying the bashrc, but I cannot work with them simultaneously. I need to modify the bashrc to work with one and modify it again to work with the other.

victor_234 gravatar image victor_234  ( 2020-03-18 07:52:41 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-03-17 18:07:23 -0600

Seen: 466 times

Last updated: Mar 17 '20