ubuntu 18.04 pytorch1.40 cuda 10.1 cudnn install gcc 5.5 install gcc 5.5 https://blog.csdn.net/CAU_Ayao/article/details/83987120 remove old cuda and nvdia driver remove cuda https://askubuntu.com/questions/1170824/cuda-10-1-update-2-is-compatible-to-gcc-7-3-0-mine-is-7-4-0-is-this-the-cause