需要安装两个包。
pip install pip install opencv-python -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pip install opencv-contrib-python -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
安装指定版本:
pip install pip install opencv-python==4.0.1.23 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pip install opencv-contrib-python -i http://pypi.douban.com/simple --trusted-host pypi.douban.com