- Start by installing pyenv via brew
brew install pyenv - Install desired version of python
pyenv install <version>and set it as globalpyenv global <version> - Update the environment variables to use the version of Python installed through pyenv:
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.zshrc - Restart your terminal or run the following command:
source ~/.zshrc - Alias python installed via pyenv
echo "alias python=$(pyenv which python)" >> ~/.zshrc
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)