title: trying to activate pyenv, error: Load pyenv automatically by appending # the following to ~/.zshrc: eval "$(pyenv init -)
body: <p>i installed pyenv using homebrew, but when i try to activate pyenv with the command:</p>
  <pre><code> pyenv shell 3.8.3, 
  </code></pre>
  <p>i get the following message:</p>
  <pre><code>pyenv: shell integration not enabled. Run `pyenv init' for instructions. 
  </code></pre>
  <p>So i run:</p>
  <pre><code>pyenv init
  </code></pre>
  <p>and then it says, &quot;</p>
  <pre><code># Load pyenv automatically by appending # the following to ~/.zshrc: eval &quot;$(pyenv init -) 
  </code></pre>
  <p>I don't know how to do this, does any1 know how to do this? I am running a mac os High Sierra 10.13.6</p>
  <p>Ultimately, I want to use Python 3.7.4, this is why I installed pyenv. If i type</p>
  <pre><code>pyenv global 3.7.4 
  </code></pre>
  <p>into the command line I get</p>
  <pre><code>pyenv: version `3.7.4' not installed
  </code></pre>
  <p>but i did install python 3.7.4. If I type</p>
  <pre><code>python -V 
  </code></pre>
  <p>into the command line, I get Python 3.8.3. How do I install python3.7.4 so pyenv will see it. Also it should be noted, i've been having problems b4 with bash wherein i have to type:</p>
  <pre><code>PATH=/Users/myHomepage/opt/anaconda3/bin:$PATH 
  </code></pre>
  <p>to activate my virtual environment previously.</p>
  <p>I saw a tutorial on how to Setup pyenv for Multiple Pythons&quot; wherein he says we have to add settings to our bash profile to type the following three commands:</p>
  <pre><code>$ echo ‘export PYENV_ROOT=“$HOME/.pyenv”’ &gt;&gt; ~/.bash_profile
  $ echo 'export PATH=“$PYEN_ROOT/bin:$PATH” &gt;&gt;.bash.profile
  $ echo ‘eval “$(pyenv init -)”’ &gt;&gt;~/.bash_profile
  </code></pre>
  <p>but i am using zsh so i input:</p>
  <pre><code>echo 'export PYENV_ROOT=&quot;$HOME/.pyenv&quot;' &gt;&gt; ~/.zshrc
  echo 'export PATH=&quot;$PYENV_ROOT/bin:$PATH&quot;' &gt;&gt; ~/.zshrc
  </code></pre>
  <p>I only ran the two commands under zsh, I don't know if this is why I am getting an error message when I restarted zsh:</p>
  <pre><code>[oh-my-zsh] Insecure completion-dependent directories detected:
  drwxrwxr-x  3 myHomepage  admin  102 Oct  7 20:04 /usr/local/share/zsh
  drwxrwxr-x  4 myHomepage  admin  136 Oct  7 20:26 /usr/local/share/zsh/site-functions
  
  [oh-my-zsh] For safety, we will not load completions from these directories until
  [oh-my-zsh] you fix their permissions and ownership and restart zsh.
  [oh-my-zsh] See the above list for directories with group or other writability.
  
  [oh-my-zsh] To fix your permissions you can do so by disabling
  [oh-my-zsh] the write permission of &quot;group&quot; and &quot;others&quot; and making sure that the
  [oh-my-zsh] owner of these directories is either root or your current user.
  [oh-my-zsh] The following command may help:
  [oh-my-zsh]     compaudit | xargs chmod g-w,o-w
  
  [oh-my-zsh] If the above didn't help or you want to skip the verification of
  [oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
  [oh-my-zsh] &quot;true&quot; before oh-my-zsh is sourced in your zshrc file.
  
  ➜  ~ exec &quot;$SHELL&quot;
  [oh-my-zsh] Insecure completion-dependent directories detected:
  drwxrwxr-x  3 myHomepage  admin  102 Oct  7 20:04 /usr/local/share/zsh
  drwxrwxr-x  4 myHomepage  admin  136 Oct  7 20:26 /usr/local/share/zsh/site-functions
  
  [oh-my-zsh] For safety, we will not load completions from these directories until
  [oh-my-zsh] you fix their permissions and ownership and restart zsh.
  [oh-my-zsh] See the above list for directories with group or other writability.
  
  [oh-my-zsh] To fix your permissions you can do so by disabling
  [oh-my-zsh] the write permission of &quot;group&quot; and &quot;others&quot; and making sure that the
  [oh-my-zsh] owner of these directories is either root or your current user.
  [oh-my-zsh] The following command may help:
  [oh-my-zsh]     compaudit | xargs chmod g-w,o-w
  
  [oh-my-zsh] If the above didn't help or you want to skip the verification of
  [oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
  [oh-my-zsh] &quot;true&quot; before oh-my-zsh is sourced in your zshrc file.
  </code></pre>
  <p>so I typed:</p>
  <pre><code>compaudit | xargs chmod g-w,o-w
  </code></pre>
  <p>but still got:</p>
  <pre><code>There are insecure directories:
  </code></pre>
  <p>so then I put this in the command line:</p>
  <pre><code>exec &quot;$SHELL&quot;
  </code></pre>
  <p>then I installed python 3.7.4 into my folder project, it seems to be working, but I'm not sure about the error message &quot; There are insecure directories:&quot;</p>