编译YouCompleteMe时,遇到fatal error: 'pyconfig.h' file not found

MacVim是用Homebrew下载编译的,版本是7.4,有Vundle下载YouCompleteMe,执行./install.sh时遇到fatal error: 'pyconfig.h' file not found 详细报错如下:

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>
阅读 12.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进