Robotics StackExchange | Archived questions

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

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.

Asked by lin404 on 2019-12-06 00:09:39 UTC

Comments

Answers

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.

Asked by tomcattiger on 2019-12-28 18:20:05 UTC

Comments