module 'cv2' has no attribute 'face'
如果你的程序所在的目录 , 没有一个叫cv2.py 的文件, 也没有cv2 子目录那就参考这篇文章
face在opencv-contrib-python里面,需要单独安装。需要与opencv-python版本号对应。