报错subprocess.CalledProcessError: Command ‘[‘which‘, ‘g++‘]‘ returned non-zero exit status 1

安装MultiScaleDeformableAttention 模块报错如上

原因: 没有安装g++ 可通过g++ -V查看

解决:安装g++

sudo apt-get install build-essential

你可能感兴趣的:(linux,深度学习环境,pytorch)