title: Setup PyYaml with pyenv on Mac OS X; file not found: python.exe
body: <p>I'm having trouble installing python packets using pip in a virtualenv. After some investigations, it turns out there seems to be a problem with PyYaml. I downloaded the last version and tried to build it. When using the "system" python, there is no problem. However, when I try to run the same command (python  setup.py install) after activating my virtualenv, I get the following error:</p>
  
  <pre><code>gcc -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -    L/Users/a/.pyenv/versions/2.7.7/lib build/temp.macosx-10.10-x86_64-2.7/ext/_yaml.o -lyaml -o     build/lib.macosx-10.10-x86_64-2.7/_yaml.so
  ld: file not found: python.exe
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'gcc' failed with exit status 1
  </code></pre>
  
  <p>I have no idea where it comes from... Any clue?</p>