sudo apt-get install libpython3.6-dev
本人尝试,用以下命令查看GDB依赖的PY版本,然后把上面那个命令的3.6替换成相应版本就好了
ldd $(which gdb) | grep python