chengdazhi / Deformable-Convolution-V2-PyTorch

Deformable ConvNets V2 (DCNv2) in PyTorch
MIT License
1.44k stars 229 forks source link

When running make.sh, it prompts that NVCC cannot be found #86

Open zj916716524 opened 2 years ago

zj916716524 commented 2 years ago

Hello. I encountered a problem when establishing the DCN-V2 environment. After running this command in sh make.sh, it reported this error /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found, but I found this file on this path of my computer, and added (export PATH=$PATH:/usr/local/cuda/bin) to bashrc through $ sudo vi ~/.bashrc this command, andsource ~/bashrc restarted the service, but still reported the above error

wqyin commented 2 years ago

Check whether the cuda home path is correct by echo $CUDA_HOME. It should be /usr/local/cuda if you can find /usr/local/cuda/bin/nvcc If not, change it by export CUDA_HOME=/usr/local/cuda