您好,我在安装时报错了,您能帮忙看一下吗?
gcc -pthread -B /home/weijiyao/miniconda3/envs/py3.7/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DTORCH_HIP_VERSION=10000 -D__HIP__ -D__HCC__ -Icsrc -I/opt/dtk/hipsparse/include -I/opt/dtk/hiprand/include -I/home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include -I/home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/TH -I/home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/THC -I/home/weijiyao/miniconda3/envs/py3.7/include/python3.7m -c csrc/graclus.cpp -o build/temp.linux-x86_64-cpython-37/csrc/graclus.o -fPIC -D__HIP_PLATFORM_HCC__=1 -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=_graclus_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++
In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/ext/hash_set:60,
from /usr/include/glog/stl_logging.h:54,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/c10/util/logging_is_google_glog.h:20,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/c10/util/Logging.h:26,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/c10/core/TensorImpl.h:19,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:14,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/include/torch/script.h:3,
from csrc/graclus.cpp:2:
/opt/rh/devtoolset-8/root/usr/include/c++/8/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^~~~~~~
g++ -pthread -B /home/weijiyao/miniconda3/envs/py3.7/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/weijiyao/miniconda3/envs/py3.7/compiler_compat -L/home/weijiyao/miniconda3/envs/py3.7/lib -Wl,-rpath=/home/weijiyao/miniconda3/envs/py3.7/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-37/csrc/cpu/graclus_cpu.o build/temp.linux-x86_64-cpython-37/csrc/graclus.o -L/home/weijiyao/miniconda3/envs/py3.7/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-37/torch_cluster/_graclus_cpu.so -s -fopenmp -lomp
/home/weijiyao/miniconda3/envs/py3.7/compiler_compat/ld: cannot find -lomp
/home/weijiyao/miniconda3/envs/py3.7/compiler_compat/ld: warning: /home/weijiyao/miniconda3/envs/py3.7/lib/libstdc++.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/home/weijiyao/miniconda3/envs/py3.7/compiler_compat/ld: warning: /home/weijiyao/miniconda3/envs/py3.7/lib/libstdc++.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/home/weijiyao/miniconda3/envs/py3.7/compiler_compat/ld: warning: /home/weijiyao/miniconda3/envs/py3.7/lib/libgomp.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/home/weijiyao/miniconda3/envs/py3.7/compiler_compat/ld: warning: /home/weijiyao/miniconda3/envs/py3.7/lib/libgomp.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/home/weijiyao/miniconda3/envs/py3.7/compiler_compat/ld: warning: /home/weijiyao/miniconda3/envs/py3.7/lib/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/home/weijiyao/miniconda3/envs/py3.7/compiler_compat/ld: warning: /home/weijiyao/miniconda3/envs/py3.7/lib/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
collect2: error: ld returned 1 exit status
error: command '/opt/rh/devtoolset-8/root/usr/bin/g++' failed with exit code 1
[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-cluster
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.