The problem with this is that Ubuntu 18.04 relies on an older incompatible Python version - do you have the option to use Ubuntu 20.04 instead? this comes prepackaged with Python 3.8.
Alternatively, try installing using Conda - this might be the easiest