So I really wanted to try YCM, which has been said to be a great plugin for Vim. I have been spending several hours on installation and cannot succeed due to the error of
E887: Sorry, this command is disabled, the Python's site module could not be loaded.
So I had this same problem on Sierra, home-brew seems to be placing the latest python here:
brew install vim ends up trying to link to python from the wrong directory. Looking at
vim --version | grep python I saw:
-lc -F/usr/local/Cellar/python/2.7.12/Frameworks -framework Python
vim --version | grep python)
To fix this, I did the following;
brew uninstall python vim brew install python brew install vim --build-from-source
vim --version | grep python shows vim is correctly linked to the correct python Framework dir.