Use Homebrew.
1, install pyenv
Terminal.
$ brew install pyenv
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$exec $SHELL -l
2, Install Python (Anaconda)
I will use Python 3 series this time.
Terminal.
$ pyenv install anaconda3-2019.10
$ pyenv global anaconda3-2019.10
3, Version check
Terminal.
$ pyenv versions
4, Summary
#List that can be installed
$ pyenv install -l
#Installation
$pyenv install version
#Run in all folders
$pyenv global version
#Run in a specific folder
$pyenv local version
5, Anaconda command
#help
$ conda -h
#List of virtual environments
$ conda info -e
#Create virtual environment
$ conda create -n Environment name
$ conda create -n environment name python=version
#Switch virtual environment
$activate environment name
#Exit the virtual environment
$ deactivate
#Full list of packages in the current virtual environment
$ conda list