网上说采用pip install 可以安装,没想到出现如下错误
pip install opencv-python
错误如下:
解决方案是换用国内镜像清华源:
pip install https://pypi.tuna.tsinghua.edu.cn/simple
不出意外则会提示安装成功 ,但我还是报错了
如果出现上述之类的错误,则再次键入:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn opencv-python
这就安装成功啦~ 最终出现以下画面Successfully installed numpy-xxxxx opencv-python-xxxx