Now run command to install required python versions, In our case, we are updating to python3.9 $ pyenv install 3.9 The output will look like Available versions: You can verify the installation and list the available python versions to install $ pyenv install -list Just close the terminal and upon and execute the shell command $ exec "$SHELL" $ echo 'eval "$(pyenv init -)"' > ~/.bash_profile $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' > ~/.bash_profile With using zsh, I successfully updated the python version to 3.9įirst, install the pyenv, just run $ brew updateĪnother option just to clone the repository of pyenv $ git clone ~/.pyenvĮxport the environment variable, run command one by one $ echo 'export PYENV_ROOT="$HOME/.pyenv"' > ~/.bash_profile Update existing Python version Safely in Catalina, BigSur: These days you most project demand python 3.x. Update Python 2 to 3 or install Python 3 on Your Mac OS by using Homebrew
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |