
If you are interested to remove existing or install python version via Homebrew 2. Run the following command to set the global version of python and verify the version

Now run command to install required python versions, In our case, we are updating to python3.9 You can verify the installation and list the available python versions to install

Just close the terminal and upon and execute the shell command $ echo 'eval "$(pyenv init -)"' > ~/.bash_profile $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' > ~/.bash_profile $ echo 'export PYENV_ROOT="$HOME/.pyenv"' > ~/.bash_profile With using zsh, I successfully updated the python version to 3.9Īnother option just to clone the repository of pyenvĮxport the environment variable, run command one by one

Update existing Python version Safely in Catalina, BigSur: These days you most project demand python 3.x.
HOW DO I INSTALL PYTHON 3 MAC MAC OS
Update Python 2 to 3 or install Python 3 on Your Mac OS by using Homebrew
