Create a new user environment variable with the name PYTHONPATH and set it to the path to the cv2.so , e.g. C:\opencv\build\python\2.7 . Hope that solves it!