For Mac, it can be installed with the brew command
brew install pyenv
pyenv install -l
pyenv install hogehoge
* Specify the python version confirmed by the above command.
Add the following settings
set -x PATH $HOME/.pyenv/bin $PATH
. (pyenv init - | psub)
pyenv global hogehoge
Specify the python version to be used as an option in the hogehoge
part
Confirm that the version has been changed with the following command
python --version
Recommended Posts