dvlab-research / Stratified-Transformer

Stratified Transformer for 3D Point Cloud Segmentation (CVPR 2022)
MIT License
376 stars 40 forks source link

Error for install torch_points3d #89

Closed NoName5990 closed 1 year ago

NoName5990 commented 1 year ago

My cuda version is 11.3 and gcc is 9.5 I encountered a problem when I installed torch_points3d, and I have run the command "pip install wheel setuptools --upgrade" but it wasn't work. So, I should how to solve this problem?

Building wheels for collected packages: torch-cluster, torch-points-kernels, torch-scatter Building wheel for torch-cluster (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [43 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-37 creating build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/radius.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/graclus.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/sampler.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/nearest.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/init.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/grid.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/knn.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/rw.py -> build/lib.linux-x86_64-cpython-37/torch_cluster copying torch_cluster/fps.py -> build/lib.linux-x86_64-cpython-37/torch_cluster running egg_info writing torch_cluster.egg-info/PKG-INFO writing dependency_links to torch_cluster.egg-info/dependency_links.txt writing requirements to torch_cluster.egg-info/requires.txt writing top-level names to torch_cluster.egg-info/top_level.txt reading manifest file 'torch_cluster.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'test' adding license file 'LICENSE' writing manifest file 'torch_cluster.egg-info/SOURCES.txt' running build_ext building 'torch_cluster._version_cpu' extension creating build/temp.linux-x86_64-cpython-37 creating build/temp.linux-x86_64-cpython-37/csrc gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/version.cpp -o build/temp.linux-x86_64-cpython-37/csrc/version.o -O2 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_version_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -L/userHOME/xzy/miniconda3/envs/stf/lib -Wl,-rpath=/userHOME/xzy/miniconda3/envs/stf/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-37/csrc/version.o -L/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-37/torch_cluster/_version_cpu.so -s /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libm.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libmvec.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 building 'torch_cluster._version_cuda' extension gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/cuda:/userHOME/xzy/cuda/include -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/version.cpp -o build/temp.linux-x86_64-cpython-37/csrc/version.o -O2 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_version_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ csrc/version.cpp:5:10: fatal error: cuda.h: 没有那个文件或目录 5 | #include | ^~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torch-cluster Running setup.py clean for torch-cluster Building wheel for torch-points-kernels (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [39 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-37 creating build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/metrics.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/chamfer_dist.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/cubic_feature_sampling.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/init.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/gridding.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/knn.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/cluster.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels copying torch_points_kernels/torchpoints.py -> build/lib.linux-x86_64-cpython-37/torch_points_kernels running build_ext building 'torch_points_kernels.points_cuda' extension creating build/temp.linux-x86_64-cpython-37 creating build/temp.linux-x86_64-cpython-37/cuda creating build/temp.linux-x86_64-cpython-37/cuda/src gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Icuda/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/cuda:/userHOME/xzy/cuda/include -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c cuda/src/ball_query.cpp -o build/temp.linux-x86_64-cpython-37/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 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140, from /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13, from /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from cuda/include/ball_query.h:2, from cuda/src/ball_query.cpp:1: /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 83 #pragma omp parallel for if ((end - begin) >= grain_size)
  In file included from cuda/include/utils.h:2,
                   from cuda/src/ball_query.cpp:3:
  /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录
      5 | #include <cuda_runtime_api.h>
        |          ^~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torch-points-kernels Running setup.py clean for torch-points-kernels Building wheel for torch-scatter (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [46 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-37 creating build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/utils.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/placeholder.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/init.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/segment_coo.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/scatter.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/segment_csr.py -> build/lib.linux-x86_64-cpython-37/torch_scatter creating build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/softmax.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/init.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/std.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/logsumexp.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite running egg_info writing torch_scatter.egg-info/PKG-INFO writing dependency_links to torch_scatter.egg-info/dependency_links.txt writing requirements to torch_scatter.egg-info/requires.txt writing top-level names to torch_scatter.egg-info/top_level.txt reading manifest file 'torch_scatter.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'test' adding license file 'LICENSE' writing manifest file 'torch_scatter.egg-info/SOURCES.txt' running build_ext building 'torch_scatter._segment_coo_cpu' extension creating build/temp.linux-x86_64-cpython-37 creating build/temp.linux-x86_64-cpython-37/csrc creating build/temp.linux-x86_64-cpython-37/csrc/cpu gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/cpu/segment_coo_cpu.cpp -o build/temp.linux-x86_64-cpython-37/csrc/cpu/segment_coo_cpu.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/segment_coo.cpp -o build/temp.linux-x86_64-cpython-37/csrc/segment_coo.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -L/userHOME/xzy/miniconda3/envs/stf/lib -Wl,-rpath=/userHOME/xzy/miniconda3/envs/stf/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-37/csrc/cpu/segment_coo_cpu.o build/temp.linux-x86_64-cpython-37/csrc/segment_coo.o -L/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-37/torch_scatter/_segment_coo_cpu.so -s /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libm.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libmvec.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 building 'torch_scatter._segment_coo_cuda' extension creating build/temp.linux-x86_64-cpython-37/csrc/cuda gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -DWITH_CUDA -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/cuda:/userHOME/xzy/cuda/include -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/cpu/segment_coo_cpu.cpp -o build/temp.linux-x86_64-cpython-37/csrc/cpu/segment_coo_cpu.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ /userHOME/xzy/cuda:/userHOME/xzy/cuda/bin/nvcc -DWITH_PYTHON -DWITH_CUDA -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/cuda:/userHOME/xzy/cuda/include -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/cuda/segment_coo_cuda.cu -o build/temp.linux-x86_64-cpython-37/csrc/cuda/segment_coo_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 error: command '/userHOME/xzy/cuda:/userHOME/xzy/cuda/bin/nvcc' failed: No such file or directory: '/userHOME/xzy/cuda:/userHOME/xzy/cuda/bin/nvcc' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torch-scatter Running setup.py clean for torch-scatter Failed to build torch-cluster torch-points-kernels torch-scatter Installing collected packages: torch-scatter, torch-cluster, tinycss2, threadpoolctl, terminado, tensorboard-data-server, subprocess32, soupsieve, sniffio, smmap, six, shortuuid, rsa, pyzmq, PyYAML, PySocks, pyrsistent, pyparsing, pygments, pycparser, pyasn1-modules, psutil, protobuf, prompt-toolkit, prometheus-client, pkgutil-resolve-name, pexpect, parso, pandocfilters, packaging, oauthlib, numpy, networkx, nest-asyncio, matplotlib-inline, MarkupSafe, llvmlite, kiwisolver, jupyterlab-widgets, jupyterlab-pygments, jupyter-core, jsonpointer, joblib, importlib-resources, importlib-metadata, idna, grpcio, fonttools, filelock, entrypoints, defusedxml, decorator, debugpy, cycler, configparser, charset-normalizer, certifi, cachetools, attrs, absl-py, werkzeug, sentry-sdk, requests, PyWavelets, python-louvain, python-dateutil, promise, plyfile, omegaconf, numba, markdown, jsonschema, jsonpatch, jinja2, jedi, isodate, imageio, google-auth, gitdb, docker-pycreds, Click, cffi, bleach, beautifulsoup4, anyio, visdom, scikit-learn, requests-oauthlib, rdflib, pandas, nbformat, matplotlib, jupyter-client, ipython, hydra-core, graphql-core, GitPython, argon2-cffi-bindings, torchnet, torch-points-kernels, torch-geometric, scikit-image, pytorch_metric_learning, nbclient, ipykernel, gql, google-auth-oauthlib, gdown, argon2-cffi, wandb, tensorboard, nbconvert, ipywidgets, jupyter-server, notebook-shim, nbclassic, notebook, open3d, torch_points3d Running setup.py install for torch-scatter ... error error: subprocess-exited-with-error

× Running setup.py install for torch-scatter did not run successfully. │ exit code: 1 ╰─> [48 lines of output] running install /userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build running build_py creating build creating build/lib.linux-x86_64-cpython-37 creating build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/utils.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/placeholder.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/init.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/segment_coo.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/scatter.py -> build/lib.linux-x86_64-cpython-37/torch_scatter copying torch_scatter/segment_csr.py -> build/lib.linux-x86_64-cpython-37/torch_scatter creating build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/softmax.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/init.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/std.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite copying torch_scatter/composite/logsumexp.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite running egg_info writing torch_scatter.egg-info/PKG-INFO writing dependency_links to torch_scatter.egg-info/dependency_links.txt writing requirements to torch_scatter.egg-info/requires.txt writing top-level names to torch_scatter.egg-info/top_level.txt reading manifest file 'torch_scatter.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'test' adding license file 'LICENSE' writing manifest file 'torch_scatter.egg-info/SOURCES.txt' running build_ext building 'torch_scatter._segment_coo_cpu' extension creating build/temp.linux-x86_64-cpython-37 creating build/temp.linux-x86_64-cpython-37/csrc creating build/temp.linux-x86_64-cpython-37/csrc/cpu gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/cpu/segment_coo_cpu.cpp -o build/temp.linux-x86_64-cpython-37/csrc/cpu/segment_coo_cpu.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/segment_coo.cpp -o build/temp.linux-x86_64-cpython-37/csrc/segment_coo.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -L/userHOME/xzy/miniconda3/envs/stf/lib -Wl,-rpath=/userHOME/xzy/miniconda3/envs/stf/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-37/csrc/cpu/segment_coo_cpu.o build/temp.linux-x86_64-cpython-37/csrc/segment_coo.o -L/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-37/torch_scatter/_segment_coo_cpu.so -s /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libm.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libmvec.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 /userHOME/xzy/miniconda3/envs/stf/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 building 'torch_scatter._segment_coo_cuda' extension creating build/temp.linux-x86_64-cpython-37/csrc/cuda gcc -pthread -B /userHOME/xzy/miniconda3/envs/stf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -DWITH_CUDA -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/cuda:/userHOME/xzy/cuda/include -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/cpu/segment_coo_cpu.cpp -o build/temp.linux-x86_64-cpython-37/csrc/cpu/segment_coo_cpu.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ /userHOME/xzy/cuda:/userHOME/xzy/cuda/bin/nvcc -DWITH_PYTHON -DWITH_CUDA -Icsrc -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/TH -I/userHOME/xzy/miniconda3/envs/stf/lib/python3.7/site-packages/torch/include/THC -I/userHOME/xzy/cuda:/userHOME/xzy/cuda/include -I/userHOME/xzy/miniconda3/envs/stf/include/python3.7m -c csrc/cuda/segment_coo_cuda.cu -o build/temp.linux-x86_64-cpython-37/csrc/cuda/segment_coo_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 error: command '/userHOME/xzy/cuda:/userHOME/xzy/cuda/bin/nvcc' failed: No such file or directory: '/userHOME/xzy/cuda:/userHOME/xzy/cuda/bin/nvcc' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> torch-scatter

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

NoName5990 commented 1 year ago

You could download cudatoolkit by command "conda install cudatoolkit==11.1" and modify the environment variables of CUDA。Note that 11.1 version is compatible for your downloaded CUDA。

77Kayla commented 1 year ago

Hi, I met the same problem with you? I noted that your original cuda version is 11.3, and you solved the problem by downloading cudatoolkit==11.1. Did you mean that cuda 11.3 is not feasible?

NoName5990 commented 1 year ago

Hi, I met the same problem with you? I noted that your original cuda version is 11.3, and you solved the problem by downloading cudatoolkit==11.1. Did you mean that cuda 11.3 is not feasible? Hi, @77Kayla , I mean My package is suitable for cuda 11.1 but the default CUDA environment is 11.3, so I changed my cuda version by conda using "conda install cudatoolkit==11.1". If you want to use 11.3 you should download the package suited to it.