Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CMake安装出现问题,正在中止生成。CMake可执行文件是CMake_Cmake_Pip - Fatal编程技术网

CMake安装出现问题,正在中止生成。CMake可执行文件是CMake

CMake安装出现问题,正在中止生成。CMake可执行文件是CMake,cmake,pip,Cmake,Pip,在alpine linux(WSL)上运行pip install cmake时出现上述错误 完全错误: /home/user# pip install cmake Collecting cmake Using cached cmake-3.18.4.post1.tar.gz (28 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing

在alpine linux(WSL)上运行
pip install cmake
时出现上述错误

完全错误:

/home/user# pip install cmake
Collecting cmake
  Using cached cmake-3.18.4.post1.tar.gz (28 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: cmake
  Building wheel for cmake (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp4q90dnrm
       cwd: /tmp/pip-install-2d2lze1g/cmake_b52ab822a1764f9f9b60c93c8713e39b
  Complete output (9 lines):
    File "/tmp/pip-build-env-szooj3fd/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 560, in setup
      cmkr = cmaker.CMaker(cmake_executable)
    File "/tmp/pip-build-env-szooj3fd/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 95, in __init__
      self.cmake_version = get_cmake_version(self.cmake_executable)
    File "/tmp/pip-build-env-szooj3fd/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 81, in get_cmake_version
      raise SKBuildError(
  Traceback (most recent call last):

  Problem with the CMake installation, aborting build. CMake executable is cmake
  ----------------------------------------
  ERROR: Failed building wheel for cmake
Failed to build cmake
ERROR: Could not build wheels for cmake which use PEP 517 and cannot be installed directly
你失踪了

对于alpinelinux-运行:

apk add cmake
对于debian/ubuntu-运行:

apt-get install cmake
yum install cmake
对于redhat/fedora/centos-运行:

apt-get install cmake
yum install cmake