ubuntu20.04出现Unable to find either executable ‘empy’ or Python module ‘em’… try

问题

-- Could NOT find PY_em (missing: PY_EM) 
CMake Error at /opt/ros/noetic/share/catkin/cmake/empy.cmake:30 (message):
  Unable to find either executable 'empy' or Python module 'em'...  try
  installing the package 'python3-empy'

原因

这是因为catkin找的python版本为anaconda下面的版本,所以需要改为指定采用下面的命令

解决办法

catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐