conda虚拟环境下使用catkin_make编译报错`Could NOT find PY_em (missing: PY_EM) `

报错:

bash 复制代码
Using PYTHON_EXECUTABLE: /home/tjsiasun/miniconda3/envs/pointpillar2/bin/python3
-- Using Debian Python package layout
-- 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'
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/all.cmake:164 (include)
  /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:58 (find_package)

解决:

编译时指定python环境

bash 复制代码
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
相关推荐
*才华有限公司*36 分钟前
gRPC开发指南:Visual Studio 2022 + Vcpkg + Windows全流程配置
c++·ide·visual studio
wefg11 小时前
【C++】类与对象
开发语言·c++
子豪-中国机器人2 小时前
C++ 蓝桥 STEMA 省选拔赛模拟测试题(第一套)
开发语言·c++·算法
虾球xz2 小时前
游戏引擎学习第286天:开始解耦实体行为
c++·人工智能·学习·游戏引擎
zh_xuan4 小时前
c++ 类的语法3
开发语言·c++
一律清风5 小时前
【Opencv】canny边缘检测提取中心坐标
c++·opencv
a东方青9 小时前
蓝桥杯 2024 C++国 B最小字符串
c++·职场和发展·蓝桥杯
XiaoyaoCarter10 小时前
每日一道leetcode
c++·算法·leetcode·职场和发展·二分查找·深度优先·前缀树
galaxy_strive11 小时前
qtc++ qdebug日志生成
开发语言·c++·qt
Darkwanderor11 小时前
c++STL-list的模拟实现
c++·list