Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16832

pyenv appends .zshrc file with spam at every `source`

$
0
0

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 -)"fi

Every 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 -)"fi

I 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.


Viewing all articles
Browse latest Browse all 16832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>