title: How do I use YCM after installing Anaconda?
body: <p>Getting error: requires Vim compiled with Python (2.7.1+ or 3.4+) support.</p>
  
  <p>It is installed with Python3. YCM was working great until installing Anaconda. To fix I tried adding this to my .vimrc:</p>
  
  <pre><code>let g:ycm_path_to_python_interpreter = '/usr/bin/python'
  </code></pre>
  
  <p>I have also referred to the YCM FAQ and tried adding this to my .ycm_extra_conf.py:</p>
  
  <pre><code>def Settings(**kwargs):
    return {
      'interpreter_path': '/path/to/anaconda/python'
    }
  </code></pre>
  
  <p>However nothing has removed or changed the error. </p>
  
  <p>I have recompiled with anaconda python and then redid it with normal python when that didn't work either. It seems from others who asked this question it does need to be compiled with non-anaconda python.</p>
  
  <p>I have seen suggestions to remove the anaconda path from .bash_profile but doesn't that defeat the purpose of having Anaconda?</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <hr>
  
  <p>Solved the problem by commenting out the Anaconda path in my .bash_profile. 'which' python still points to Anaconda python, but YCM compiles and works again. </p>
  
  <p>No idea why this approach works, but it does.</p>