I have only one Python 3.9.6 (default from mac) installed on my laptop and yet I am facing this issue. I have tried several paths for pythonpath and pythonhome including keeping it blank but all have resulted in same error. Would really need help on this.
The links that I referred to solve the issue are mentioned below -