您当前的位置: 首页 > 
  • 0浏览

    0关注

    483博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

ROS报错:-- Could NOT find PY_em (missing: PY_EM)

高精度计算机视觉 发布时间:2022-02-01 20:17:38 ,浏览量:0

Ubuntu20.04, ROS Noetic,根据ROS tutorial,

ROS/Tutorials - ROS Wiki

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/
$ catkin_make

报错如下,

matthew@UBUT:~/catkin_ws$ catkin_make
...
-- Using PYTHON_EXECUTABLE: /home/matthew/anaconda3/envs/torch/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)
...

根据下面的链接,

catkin_make errors with cmake regarding PY_em/PY_EM/empy/em · Issue #2 · ros-melodic-arch/ros-melodic-catkin · GitHub

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

catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3

结果就一切正常了。

关注
打赏
1661664439
查看更多评论
立即登录/注册

微信扫码登录

0.0357s