apart from IOError as e: if e.errno == errno.EACCES: return "some default facts" # Not a authorization mistake. elevateThen, according to the final result, your application can just preserve managing from there or you'll be able to code to halt it If you would like.Switching the interpreter on your own to place on the python symlink inside the venv