I have Macbook with Apple M1 Chip in which I have to use Python 3.6.5 for my project. It comes with Python 2.7.16 and 3.8.2 preinstalled. I used brew to install Python which by default installed 3.9.1. So, I tried this homebrew formula to install 3.6.5, but got following error: I tried pyenv install 3.6.5 , but it fails with