there are similar questions on StackOverflow, but I couldnt find any helpful.
I am embedding python in c++ in visual studio. My python is in anaconda, and the directory for anaconda is c:/anaconda2, my code is very simple
ImportError: No module named site
site.py is in
C:\Anaconda2\Lib, after appending
C:\Anaconda2\Lib, problem solved. Also see this question