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

在Ubuntu20.04中,遇到Catkin构建时找不到'empy'可执行文件或Python模块'em'的问题。这通常是因为Catkin尝试使用Anaconda环境中的Python版本。解决方法是在执行`catkin_make`时指定系统Python3路径,例如:`catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3`。这样做将确保使用正确的Python解释器来安装'python3-empy'包,从而解决构建错误。

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
评论 26
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值