title: Failed to activate virtualenv with pyenv
body: <p>I run:</p>
  
  <pre><code>pyenv activate new_app
  </code></pre>
  
  <p>And I get:</p>
  
  <pre><code>Failed to activate virtualenv.
  
  Perhaps pyenv-virtualenv has not been loaded into your shell properly.
  Please restart current shell and try again.
  </code></pre>
  
  <p>I am trying to follow this tutorial: <a href="https://tutorials.technology/tutorials/59-Start-a-flask-project-from-zero-building-api-rest.html" rel="noreferrer">https://tutorials.technology/tutorials/59-Start-a-flask-project-from-zero-building-api-rest.html</a></p>
  
  <p>Other info:</p>
  
  <pre><code>bash-3.2$ python --version
  Python 3.6.0
  
  bash-3.2$ pyenv version
  3.6.0 (set by /Users/me/Projects/flask_api/.python-version)
  
  bash-3.2$ pwd
  /Users/me/Projects/flask_api
  
  bash-3.2$ pyenv versions
    system
    3.5.1
    3.5.1/envs/my_env_3_5_1
  * 3.6.0 (set by /Users/me/Projects/flask_api/.python-version)
    3.6.0/envs/new_app
    flask_app
    my_env_3_5_1
    new_app
  
  bash-3.2$ virtualenv --version
  15.1.0
  
  bash-3.2$ pyenv virtualenvs
  3.5.1/envs/my_env_3_5_1 (created from /Users/me/.pyenv/versions/3.5.1)
    3.6.0/envs/new_app (created from /Users/me/.pyenv/versions/3.6.0)
    flask_app (created from /System/Library/Frameworks/Python.framework/Versions/2.7)
    my_env_3_5_1 (created from /Users/me/.pyenv/versions/3.5.1)
    new_app (created from /Users/me/.pyenv/versions/3.6.0)
  </code></pre>
  
  <p>I recently made my <code>.bash_profile</code> it contains:</p>
  
  <pre><code>bash-3.2$ cat ~/.bash_profile 
  eval "$(pyenv init -)"
  eval "$(pyenv virtualenv-init -)"
  exec "$SHELL"
  if which pyenv-virtualenv-init &gt; /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
  </code></pre>
  
  <p>What should I do to properly start virtualenv?</p>