Panda3D & Ubuntu 18.04?

The easiest way to install a compatible build is to install it with pip:

sudo pip3 install --pre --extra-index-url https://archive.panda3d.org panda3d

That way you get a build that corresponds to your Python version.