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
相关推荐
HUN金克斯9 分钟前
C++/C函数
c语言·开发语言·c++
慢半拍iii10 分钟前
数据结构——F/图
c语言·开发语言·数据结构·c++
iceslime43 分钟前
旅行商问题(TSP)的 C++ 动态规划解法教学攻略
数据结构·c++·算法·算法设计与分析
虾球xz1 小时前
CppCon 2015 学习:3D Face Tracking and Reconstruction using Modern C++
开发语言·c++·学习·3d
small_wh1te_coder2 小时前
c语言超详细知识点总结 1500行手写源码 持续更新中ing 从25年5月到6月5日
c++·c
SteveDraw3 小时前
C++动态链接库封装,供C#/C++ 等编程语言使用——C++动态链接库概述(总)
开发语言·c++·c#·封装·动态链接库
十五年专注C++开发4 小时前
设计模式之单例模式(二): 心得体会
开发语言·c++·单例模式·设计模式
?!7144 小时前
算法打卡第18天
c++·算法
zh_xuan4 小时前
c++ std::pair
开发语言·c++
CodeWithMe5 小时前
【C/C++】EBO空基类优化介绍
开发语言·c++