YouCompleteMe ycm Could NOT find Python3 (missing: Development) found suitable version 解决

编译命令

[root@bogon YouCompleteMe]# ./install.py --clang-completer

Searching Python 3.8 libraries...

Found Python library: /opt/python385/lib/libpython3.8.so

Found Python headers folder: /opt/python385/include/python3.8

问题

CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:164 (message):

  Could NOT find Python3 (missing: Development) (found suitable version

  "3.8.5", minimum required is "3.6...3.10")

Call Stack (most recent call first):

  /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)

  /usr/share/cmake3/Modules/FindPython/Support.cmake:2437 (find_package_handle_standard_args)

  /usr/share/cmake3/Modules/FindPython3.cmake:309 (include)

  CMakeLists.txt:223 (find_package)

解决

卸载 yum 安装的cmake3 

yum remove cmake

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容