ninja

       cwd: /tmp/pip-install-3evdau32/ninja
  Complete output (9 lines):
    File "/tmp/pip-build-env-m7obrf29/overlay/lib/python3.6/site-packages/skbuild/setuptools_wrap.py", line 560, in setup
      cmkr = cmaker.CMaker(cmake_executable)
    File "/tmp/pip-build-env-m7obrf29/overlay/lib/python3.6/site-packages/skbuild/cmaker.py", line 95, in __init__
      self.cmake_version = get_cmake_version(self.cmake_executable)
    File "/tmp/pip-build-env-m7obrf29/overlay/lib/python3.6/site-packages/skbuild/cmaker.py", line 82, in get_cmake_version
      "Problem with the CMake installation, aborting build. CMake executable is %s" % cmake_executable)
  Traceback (most recent call last):
  
  Problem with the CMake installation, aborting build. CMake executable is cmake
  ----------------------------------------
  ERROR: Failed building wheel for ninja
Failed to build ninja
ERROR: Could not build wheels for ninja which use PEP 517 and cannot be installed directly
[root@localhost build]# 
[root@localhost data1]# git clone https://github.com/scikit-build/scikit-build &&  cd scikit-build
Cloning into 'scikit-build'...
remote: Enumerating objects: 62, done.
remote: Counting objects: 100% (62/62), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 4405 (delta 29), reused 29 (delta 13), pack-reused 4343
Receiving objects: 100% (4405/4405), 1.41 MiB | 744.00 KiB/s, done.
Resolving deltas: 100% (2841/2841), done.
[root@localhost scikit-build]# pip3 install .

安装re2c

yum install autoconf
git clone https://github.com/skvadrik/re2c
cd re2c
./autogen.sh 
./configure make
make install

ninja

./configure.py --bootstrap


 
原文地址:https://www.cnblogs.com/dream397/p/13925198.html