在导入的时候就报错ImportError: /home/zhao/.cache/torch_extensions/fused/fused.so: cannot open shared object file: No such file or directory
然后在进入(base) zhao@zhao:~/.cache/torch_extensions/fused目录下输入ninja报错
[[1/2] /usr/local/cuda/bin/nvcc -ccbin...el.cu -o fused_bias_act_kernel.cuda.o
FAILED: fused_bias_act_kernel.cuda.o
/usr/local/cuda/bin/nvcc -ccbin /home/zhao/anaconda3/bin/x86_64-conda-linux-gnu-cc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/zhao/anaconda3/lib/python3.9/site-packages/torch/include -isystem /home/zhao/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -isystem /home/zhao/anaconda3/lib/python3.9/site-packages/torch/include/TH -isystem /home/zhao/anaconda3/lib/python3.9/site-packages/torch/include/THC -isystem /home/zhao/anaconda3/include -isystem /home/zhao/anaconda3/include/python3.9 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /home/zhao/SY/HairCLIPv2-main/models/stylegan2/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
x86_64-conda-linux-gnu-cc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
nvcc fatal : Failed to preprocess host compiler properties.
ninja: build stopped: subcommand failed.]()