NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.43k stars 360 forks source link

subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '12']' returned non-zero exit status 1. #507

Closed samanemami closed 1 year ago

samanemami commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

I receive the following error when I am installing the package;

subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '12']' returned non-zero exit status 1.

To Reproduce

python setup.py install

Expected behavior Installation of course!


Desktop (please complete the following information):

samanemami commented 1 year ago

I fixed it with the following setting of ~/.bashrc, pip packages, compiler version, etc;

cuda-compiler          11-2
torchaudio             0.12.1
torchvision            0.13.1
GCC                    9
ubuntu                 22.04
py                     3.7

export PATH=/usr/local/cuda-11.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64:$LD_LIBRARY_PATH
export CUDA_HOME=/usr/local/cuda-11.2

Hope it will be helpful for anyone who has the same issue.