mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #109] install error on windows, need help #62
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#62
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 @gaowayne on GitHub (Nov 3, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/109
hello expert, need your help, run into below error when trying to install on windows.
@AlphaMo99 commented on GitHub (Feb 10, 2025):
Same here on Linux, with a python 3.12 venv :
Moreover you should update the documentation : pip install torch packaging ninja cpufeature numpy (missing cpufeature and numpy)
On Linux I managed to solve this error by installing the package: nvidia-cuda-toolkit
@Reactantvr commented on GitHub (Feb 10, 2025):
I get the same error with windows 10. I tried installing cuda toolkit 12.8, but the error still persists.
Installing ktransformers
Processing j:\ktransformers
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "C:\Users\matt\anaconda3\envs\kt3\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "C:\Users\matt\anaconda3\envs\kt3\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\matt\anaconda3\envs\kt3\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 175, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\matt\anaconda3\envs\kt3\Lib\site-packages\setuptools\build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\matt\anaconda3\envs\kt3\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 296, in
File "", line 132, in get_package_version
File "", line 54, in get_cuda_bare_metal_version
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Installation completed successfully
Edit 1:
I finally got passed the error using the following command:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
Edit 2:
Well, new error now. I've spent half a day troubleshooting this and I am just going to give up. This app clearly is not set up to work in windows. I'll just stick with llama.cpp and slow speed because it just works.
error: [WinError 2] The system cannot find the file specified
[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)
Installation completed successfully
@fshurra commented on GitHub (Feb 12, 2025):
I have done a build from source install with ver 0.1.3 recently. Run into similar problems. Here are my solutions.
For part1, i fixed it using the same way.
For part2, please check if the cmake / cl are installed and present in your PATH.
@Reactantvr commented on GitHub (Feb 13, 2025):
@fshurra
cl.exe was not present in my PATH and adding it changed what is happening. Now, "building wheel for ktransforms (pyproject.toml) ..." will do something for several minutes, then spit out errors after (like 100 pages of errors).
@chengdidididi commented on GitHub (Feb 20, 2025):
@Reactantvr 我也遇到了类似的问题,但是我是直接用的conda环境里装的最新的cmake(用conda update -c conda-forge cmake更新到最新版),也是会持续几分钟然后输出大量错误信息,报错也是一样的,我怀疑这个项目需要使用特定版本的cl来进行编译,但是在文档里并未说明,感觉这个项目对Windows平台兼容性还很一般
@ErvinXie commented on GitHub (Dec 11, 2025):
This issue has been automatically closed due to inactivity for 60 days.
If you believe this issue is still relevant, please feel free to reopen it with additional information or context.
Thank you for your contribution to KTransformers!
此 issue 因超过 60 天无活动而被自动关闭。
如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。
感谢您对 KTransformers 的贡献!