Stratified-Transformer
Stratified-Transformer copied to clipboard
Running setup.py install for torch-points-kernels ... error
I got some error when I pip install torch_points3d==1.3.0 and pip install torch_points_kernels==0.6.10
how can I do ? Could you help me ? Thank you !
Failed to build torch-points-kernels Installing collected packages: torch-points-kernels Running setup.py install for torch-points-kernels ... error ERROR: Command errored out with exit status 1: command: /home/dq/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6p0cpdov/torch-points-kernels_42643aa2263b4566b10bdad314b648dc/setup.py'"'"'; file='"'"'/tmp/pip-install-6p0cpdov/torch-points-kernels_42643aa2263b4566b10bdad314b648dc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-qr4jjkpc/install-record.txt --single-version-externally-managed --compile --install-headers /home/dq/anaconda3/include/python3.8/torch-points-kernels cwd: /tmp/pip-install-6p0cpdov/torch-points-kernels_42643aa2263b4566b10bdad314b648dc/ Complete output (22 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/chamfer_dist.py -> build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/knn.py -> build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/torchpoints.py -> build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/cluster.py -> build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/cubic_feature_sampling.py -> build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/init.py -> build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/gridding.py -> build/lib.linux-x86_64-3.8/torch_points_kernels copying torch_points_kernels/metrics.py -> build/lib.linux-x86_64-3.8/torch_points_kernels running build_ext building 'torch_points_kernels.points_cuda' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/cuda creating build/temp.linux-x86_64-3.8/cuda/src gcc -pthread -B /home/dq/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Icuda/include -I/home/dq/anaconda3/lib/python3.8/site-packages/torch/include -I/home/dq/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/dq/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/dq/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/dq/anaconda3/include/python3.8 -c cuda/src/ball_query.cpp -o build/temp.linux-x86_64-3.8/cuda/src/ball_query.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 gcc: error trying to exec 'cc1plus': execvp: 没有那个文件或目录 error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/dq/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6p0cpdov/torch-points-kernels_42643aa2263b4566b10bdad314b648dc/setup.py'"'"'; file='"'"'/tmp/pip-install-6p0cpdov/torch-points-kernels_42643aa2263b4566b10bdad314b648dc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-qr4jjkpc/install-record.txt --single-version-externally-managed --compile --install-headers /home/dq/anaconda3/include/python3.8/torch-points-kernels Check the logs for full command output.
It seems like the gcc and g++ have some errors.
@ksama777 Sometimes anaconda has issues with CUDA dependent packages. Maybe you can try installing outside of anaconda, then copying the installed files from your site_packages
into the corresponding folder of your anaconda environment.