python或anaconda下安装opencv提示Error:No matching distribution found for opencv
错误提示:
ERROR: Could not find a version that satisfies the requirement python-opencv (from versions: none)
ERROR: No matching distribution found for python-opencv
解决方法:
cmd下
如果是python2,使用如下命令:
pip install opencv-python
如果是python3,使用如下命令:
pip3 install opencv-python
如果安装了anaconda,激活自己的anaconda下的python环境:
activate Env-python
然后使用以下命令:
pip3 install opencv-python
如果没有安装annaconda的话,貌似要把opencv-python换成python-opencv。