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

[ROS2][Conda] conda environment to install ROS2 on Mac

asked 2019-12-05 23:13:02 -0500

lin404 gravatar image

I have been struggling to install ROS2 in a conda environment on Mac.

I have tried to do:
conda create -n ros2 anaconda
conda activate ros2
conda install -c conda-forge rosdep rospkg

I got many errors When I run ros2:
such as Library not loaded, No module named 'em', No module named 'lxml'

It seems I still do not have enough packages for running ros2, either rosdep or rospkg is for ROS1.
Is there a proper conda package for ROS2? Is there anyone using conda environment for ROS2? I did not find much information by googling.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-12-28 17:20:05 -0500

tomcattiger gravatar image

Hello,

although you have set up anaconda python env, the ros2 still use your system setup (so it is your system python3 envs). Therefore, you can use

pip3 install empy lxml --user

to install your pkg for ros2.

I am also wondering if one can use anaconda envs. I will check the env setup files in ros2. If anyone has some suggestions, pls let me know.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-12-05 23:09:39 -0500

Seen: 2,966 times

Last updated: Dec 28 '19