Python: How to pip install opencv2 with specific version 2.4.9?

前端 未结 13 1643
长发绾君心
长发绾君心 2020-12-13 01:33

I know that I could pip install opencv-python which installs opencv3, but is there a separate command or name for opencv specific version such as 2.4.9?

<
13条回答
  •  醉酒成梦
    2020-12-13 02:08

    If you're a Windows user, opencv can be installed using pip, like this:

    pip install opencv-python==
    
    ex - pip install opencv-python==3.6
    

    If you're a Linux user:

    sudo apt-get install python-opencv
    

    At the same time, opencv can be installed using conda like this...

    conda install -c https://conda.binstar.org/menpo opencv=3.6
    

提交回复
热议问题