本文基于colab环境下,配置mmdetection环境,配置下来也踩了不少坑,希望能对有需要的朋友一点点帮助。
安装库最常见的bug大都是由于版本不兼容导致的(软件和硬件不兼容、不同库之间有冲突),所以在安装前要先确认平台的基本信息:平台系统、cuda版本、GCC版本。
#输入
!sudo lsb_release -a # 查看系统版本
!nvcc -V #或者!nvidia-smi # 查看cuda版本
!gcc --version # 查看GCC版本
——————————————————手动分割线————————————————
#输出
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Wed_Jul_22_19:09:09_PDT_2020
Cuda compilation tools, release 11.0, V11.0.221
Build cuda_11.0_bu.TC445_37.28845127_0
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
可知:系统是Ubuntu18.04,cud