Fatalrror encountered while compiling YouCompleteMe:’ pyconfig.h ‘filenotfound

  question, vim

MacVim was compiled with Homebrew download, version 7.4. Vundle downloaded YouCompleteMe and encountered fatalerror:’ pyconfig.h’ filenotfound when executing./install.sh.
Details of the error are as follows:

In file included from /Users/findingsea/.vim/bundle/YouCompleteMe/cpp/BoostParts/libs/python/src/errors.cpp:10:
 In file included from /Users/findingsea/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/errors.hpp:12:
 In file included from /Users/findingsea/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/prefix.hpp:13:
 /Users/findingsea/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/wrap_python.hpp:50:11: fatal error:
 'pyconfig.h' file not found
 # include <pyconfig.h>