mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #673] install.sh安装报错subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--verbose', '--parallel=52']' returned non-zero exit status 2. #489
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#489
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Maxhyl on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/673
环境:
ubuntu
gcc 11.2.0
cuda 12.4
python 3.11
torch 2.4.1
cmake 3.31.4
按照文档说明操作,最后运行bash install.sh时报错
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--verbose', '--parallel=52']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ktransformers
Failed to build ktransformers
ERROR: Failed to build installable wheels for some pyproject.toml based projects (ktransformers)
请问这个问题怎么解决?
@zxfingithub commented on GitHub (Feb 26, 2025):
可能是cmake的bin目录没有设置到PATH的环境变量中,编译时cmake没有找到或者安装多个版本的cmake,找到的cmake版本太低
@Maxhyl commented on GitHub (Feb 26, 2025):
已经加入了,3.31.4已经是最新了
@zay95 commented on GitHub (Feb 26, 2025):
same problem
cuda 12.3
python 3.11
torch 2.4.1
@xieyongshuai commented on GitHub (Feb 26, 2025):
same problem
@bitboxclub commented on GitHub (Feb 26, 2025):
临时手动制定编译进程数
export CMAKE_BUILD_PARALLEL_LEVEL=6 # 6是你想使用的CPU进程个数。
@gcMs1 commented on GitHub (Feb 26, 2025):
Thank you very much! It work for me!
@Maxhyl commented on GitHub (Feb 27, 2025):
设置之后报错变成了这个subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--verbose']' returned non-zero exit status 1.
@xieyongshuai commented on GitHub (Feb 27, 2025):
Thank you very much! It work for me!
@956961 commented on GitHub (Feb 27, 2025):
我也是,请问你解决了吗
@Maxhyl commented on GitHub (Feb 28, 2025):
我的可能是cuda问题,我重装之后就可以了
@bitboxclub commented on GitHub (Feb 28, 2025):
得有更多的上下文才能看出来
@z-l-102 commented on GitHub (Apr 7, 2025):
Thank you very much! It work for me!
@YHCyhc20010606 commented on GitHub (Nov 3, 2025):
File "", line 397, in build_extension
File "/home/yhc/.conda/envs/hybrimoe/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--verbose', '--parallel=48']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ktransformers
Failed to build ktransformers
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> ktransformers
我也是同样的问题 cuda 12.1 python 3.11 torch 2.5 cmake26.4 3.31.5 3.31.6 4.1.2 是什么问题