I am trying to setup python 3.7.3 to be my default python.I am following this guide https://opensource.com/article/19/5/python-3-default-mac undre the chapter What we should do at the bottom of the page.
It works fine besides it appends my .zshrc file with:
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi'>> ~/.zshrcif command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)"fiif command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)"fiEvery time I open the terminal or run source ~/.zshrc it will put another of the following at the bottom of my config:
if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)"fiI get python v2 if I remove if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)"fi, change the >> ~/.zshrc to >> ~/.zshrc_temp or remove it completely Any ideas?
I am using MacOS Mojave 10.14 and iTerm2 if that matters.