Installing opencv on Windows 10 with python 3.6 and anaconda 3.6
How to install opencv with python 3.6 and anaconda 3.6?
I tried conda install -c https://conda.binstar.org/menpo opencv3
but i get the following error:
UnsatisfiableError: The following specifications were found to be in conflict:
- opencv3 -> python 2.7*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
I am using Windows 10 64-bit, with python 3.6, and anaconda 3.6 installed.
Is it even available for python3.6 at the moment or should i rollback my python version to 3.5.*?
search anaconda prompt
open and run the command.
> pip install opencv-python
this single command help's you to install opencv easily.
you can take help from the video link below.
video link
From menpo file page, it shows that the OpenCV 3.2 binary there are only for Python 2.7/3.4/3.5 and on linux-64 platform
You may go to the this site to get the exact version you need.
-
opencv_python‑3.2.0‑cp36‑cp36m‑win_amd64.whl
is the basic one. -
opencv_python‑3.2.0+contrib‑cp36‑cp36m‑win_amd64.whl
is the one with opencv-contrib modules such as thetext
module for binding to tesseract OCR engine and many others.
Both binary are for OpenCV 3.2 with Python 3.6 binding for Windows 64-bit. To install it, 1) download the binary to local drive, 2) open your Anaconda command prompt and 3) type the command below in the directory the binary locates.
pip install opencv_python‑3.2.0+contrib‑cp36‑cp36m‑win_amd64.whl
Hope this help.
Update on 2018-02-22:
OpenCV 3.4.0
wheel files are now available in the unofficial site and replaced OpenCV 3.3.0
Update on 2019-01-30:
OpenCV 4.0.1
wheel files are now available in the unofficial site with CPython 3.5/3.6/3.7
support.
I managed to get it working by doing the following:
Download and install python3.6 from official python site https://www.python.org/downloads/release/python-360/
Download and install Anaconda 4.4.0 from the official anaconda site https://www.continuum.io/downloads
Open command line and run: pip install opencv-python
-
Open command line and run: pip install opencv-contrib-python
I am using Windows 10 and it worked for me.