This issue is the same as #39, unclear why it resurfaced.
When pretty_errors is run as a module inside a pyenv virtualenv to add it to Python startup procedure (python -m pretty_errors), no folders to install into are found.
Updating the regexes should resolve this.
As a workaround I hardcoded the path to site-packages:
vim $(pyenv prefix)/lib/python3.9/site-packages/pretty_errors/__main__.py
# set paths in line 50 to
# paths = ['<$(pyenv prefix)>/lib/python3.9/site-packages']