问题描述
安装cartographer_ros
运行catkin_make_isolated --install --use-ninja
ubuntu版本:20.04
ros版本:noetic
命令出现一下问题文章来源:https://www.toymoban.com/news/detail-508383.html
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find PythonInterp: Found unsuitable version "2.7.18", but
required is at least "3" (found /usr/bin/python)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/opt/ros/noetic/share/catkin/cmake/python.cmake:4 (find_package)
/opt/ros/noetic/share/catkin/cmake/all.cmake:164 (include)
/opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:54 (find_package)
解决方案:
打开/catkin_ws/build_isolated/cartographer_ros下的CMakeCache.txt
勾选Advanced找到PYTHON_EXECUTABLE,更新为同路径下的Python3解决文章来源地址https://www.toymoban.com/news/detail-508383.html
到了这里,关于CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Co的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!