Hi,
M1 Mac requires python 3.9.1 or later
Open Terminla.app
Install Homebrew
$ cd /opt
$ sudo mkdir homebrew
$ sudo chown $USER:admin homebrew
$ curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
Export PATH
$ echo 'export PATH=“/opt/homebrew/bin:$PATH”' >> ~/.zshrc
$ exec $SHELL -l
Install anyenv
$ brew install anyenv
$ echo 'eval "$(anyenv init -)"' >> ~/.zshrc
$ exec $SHELL -l
Init the anyenv
$ anyenv install --init
Install update plugin
$ mkdir -p $(anyenv root)/plugins
$ git clone https://github.com/znz/anyenv-update.git $(anyenv root)/plugins/anyenv-update
Install nodenv with anyenv
$ anyenv install nodenv
Check installable node
$ nodenv install -l
Install 14.15.4(ex.)
$ nodenv install 14.15.4
$ nodenv rehash
Definiton node for gloval
$ nodenv global 14.15.4
$ nodenv local 14.15.4
Install pyenv
$ anyenv install pyenv
$ exec $SHELL -l
List installable python versions
$ pyenv install -l
Install Miniforge
$ pyenv install miniforge3-4.9.2
$ exec $SHELL -l
$ python --version
Python 2.7.16
$ pyenv global miniforge3-4.9.2
$ exec $SHELL -l
$ python --version
Python 3.9.1
$ which python
/Users/[your_acount]/.anyenv/envs/pyenv/shims/python
$ which pip
/Users/[your_acount]/.anyenv/envs/pyenv/shims/pip
That's all.
Good luck.