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
相关推荐
小欣加油4 小时前
leetcode3751 范围内总波动值I
java·数据结构·c++·算法·leetcode
代码中介商4 小时前
C++左值与右值:核心判断法则详解
开发语言·c++
kobesdu5 小时前
【ROS2实战笔记-24】ROS2 Launch 实用技巧:条件逻辑与节点动态生成
笔记·ros·slam
玖玥拾5 小时前
C/C++ 基础笔记(七)
c语言·c++
珊瑚里的鱼6 小时前
手撕单例模式中的饿汉模式和懒汉模式,懒汉模式还要再多加一个C++11版本的
开发语言·c++·单例模式
zh路西法6 小时前
【Linux 串口通信】基于 C++ 多线程的同步/异步串口实现
linux·运维·c++·python
不会C语言的男孩6 小时前
C++ Primer 第12章:动态内存
开发语言·c++
thisiszdy7 小时前
<C++> 浅拷贝与深拷贝
c++
2023自学中7 小时前
Linux虚拟机 CMakeLists.txt:x86 与 ARM 双架构编译脚本
linux·c语言·c++·嵌入式
眠りたいです7 小时前
现代C++:C++17中的新库特性
开发语言·c++·c++20·c++17