title: Pyenv unable to detect installed python versions on MacOS Catalina
body: <p>I have MacOS Catalina and I went ahead and did a <code>brew install</code> for the latest version of <code>python</code> 3.8.5. Then I discovered <code>pyenv</code> and installed that as well. I followed the steps on <a href="https://github.com/pyenv/pyenv#basic-github-checkout" rel="nofollow noreferrer">https://github.com/pyenv/pyenv#basic-github-checkout</a> from number 3 but still can't see any python versions in <code>pyenv</code>.</p>
  <p>I have both .zprofile and .zshrc files and am wondering if that's causing issues. Here's my <code>echo $PATH</code> -</p>
  <pre><code>/Users/pq0252/.pyenv/shims/shims:/Users/pq0252/.pyenv/shims/shims:/Users/pq0252/.pyenv/shims:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 
  </code></pre>
  <p>Here's the pyenv version output:</p>
  <pre><code>pyenv versions
  * system (set by /Users/pq0252/.pyenv/shims/version) 
  </code></pre>
  <p>Here's the <code>.zprofile</code> contents -</p>
  <pre><code> #Setting PATH for Python 3.8.   
   #The original version is saved in .zprofile.pysave.   
  PATH=&quot;/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}&quot;   
  export PATH 
  </code></pre>
  <p>Here's the <code>.zshrc</code> contents (this seems to be repeating the <code>if</code> condition, even though I only added it once which I am thinking has something to do with the step 3 on <code>pyenv</code> github where we are appending to it?).</p>
  <pre><code>export PYENV_ROOT=&quot;$HOME/.pyenv/shims&quot;
  export PATH=&quot;$PYENV_ROOT:$PATH&quot;
  export PIPENV_PYTHON=&quot;$PYENV_ROOT/python&quot;
  echo -e 'if command -v pyenv 1&gt;/dev/null 2&gt;&amp;1; then\n  eval &quot;$(pyenv init -)&quot;\n$
  if command -v pyenv 1&gt;/dev/null 2&gt;&amp;1; then
    eval &quot;$(pyenv init -)&quot;
  fi
  if command -v pyenv 1&gt;/dev/null 2&gt;&amp;1; then
    eval &quot;$(pyenv init -)&quot;
  fi
  </code></pre>
  <p>Should I remove entries in <code>.zshrc</code> and instead add everything to <code>.zprofile</code> or is there something else I'm missing? <code>python3 --version</code> does show 3.8.5.</p>