Not being a Python developer myself I’d almost go the Docker route simply to avoid the hell that is Python package management.
While I can’t suggest anything specifically helpful (I’ve forgotten) I’d say check the project’s Dockerfile. It’ll give you an idea of how they’re handling it in Docker therefore a provide some hint as to what to do.
There’s https://mujico.org/