FYI here is how I installed approached it in python. You may be able to pip install this, but I might still need to add a couple pip dependencies.
It was a bit slower than some numbers I’ve seen from rana, but I’m running on a 2015 MacBook. Want to run some testing soon.
https://github.com/armstrys/nostrfastr/blob/main/nbs/04_vanity.ipynb