gpt4 book ai didi

cmake - CMake 安装出现问题,正在中止构建。 CMake 可执行文件是 cmake

转载 作者:行者123 更新时间:2023-12-04 11:28:15 68 4
gpt4 key购买 nike

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

/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

最佳答案

你失踪了 cmake .
对于 Alpine linux - 运行:

apk add cmake
对于 debian / Ubuntu - 跑:
apt-get install cmake
对于 红帽/ 软呢帽 / centos - 跑:
yum install cmake

关于cmake - CMake 安装出现问题,正在中止构建。 CMake 可执行文件是 cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66409168/

68 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com