[2629/5804] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/cpu/SortingKernel.cpp.SVE256.cpp.o
ninja: build stopped: subcommand failed.
error: subprocess-exited-with-error
Γ Building editable for torch (pyproject.toml) did not run successfully.
β exit code: 1
β°β> No available output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/yeonguchoebusiness/pytorch/.venv/bin/python /home/yeonguchoebusiness/pytorch/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_editable /tmp/tmp4okde_bo
cwd: /home/yeonguchoebusiness/pytorch
Building editable for torch (pyproject.toml) ... error
ERROR: Failed building editable for torch
Failed to build torch
error: failed-wheel-build-for-install
Γ Failed to build installable wheels for some pyproject.toml based projects
β°β> torch
I am using Linux on CPU-only environment.
Has anyone encountered this error before? How did you solve it?
After reading your comment, I thought it has something to do with python, so I built cpython manually and tried again. However, it is still crashing when building pytorch.
Do you mind asking which option do you use when building pytorch?
(e.g,
export USE_CUDA=0
USE_ROCM=0
USE_XPU=0
CMAKE_PREFIX_PATH=β${VIRTUAL_ENV}:${CMAKE_PREFIX_PATH}β &&
python -m pip install --no-build-isolation -v -e .)