How to get Kdenlive speech to text & python working?

I am using Kdenlive and trying to use its speech to text module that requires python and pip3. 2 problems happen
The first problem is that the python tab does not appear in the Environment section in settings.

Compare this to the screenshot on their official site or the flatpak version

The second problem is that kdenlive cannot seem to run its python script using whatever python it detects. If I only install python3, kdenlive tells me it doesn’t detect pip3.
If I install python312Packages.pip this warning pops up twice instead

Does anyone know how I can configure this to make it work?
The flatpak version also cannot detect python so if there’s a way to make it work that way instead please do tell.

Figured it out.
First I have to use kdenlive from kdePackages instead of just the default one so that it uses qt6 I assume. This way the python tab actually appears in the environment section.
Then install the needed python packages (pip, numba, vosk, openai-whipser, etc) using python3.withPackages so that kdenlive and the python modules themselves can find each other.