There is another thread on the same theme;-) It’s a bit older
The biggest problem, you will run into, is that Ubuntu 24.04 is using Python 3.12. So, all the pre-build packages will not really work. You could find a PPA for Python 3.11 and that works for first tests, but eventually you will run into trouble with to different Python3 versions:-(