可以把原opencv卸载(pip uninstall opencv),然后安装扩展版本的opencv,pip install opencv-contrib-python==3.4.2.16(选择低版本,不然运行会报另一种错误)