'error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1 on Colab

I had cloned these repo !git clone https://github.com/lbin/DCNv2.git and try to Build on Google colab but got these error



Solution 1:[1]

These error occur because DCNv2 require torch version 1.4.0 so simply I had degraded torch version after that try to build again

!pip install -U torch==1.4 torchvision==0.5 -f https://download.pytorch.org/whl/cu101/torch_stable.html

Solution 2:[2]

Thanks?I fixed. Simply I had degraded torch version after that try to build again?

!pip install -U torch==1.4 torchvision==0.5 -f https://download.pytorch.org/whl/cu101/torch_stable.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohit Verma
Solution 2 Andronicus