How to install opencv with python 3.6 and anaconda 3.6?I tried conda install -c opencv3but 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 ' 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.? From menpo, it shows that the OpenCV 3.2 binary there are only for Python 2.7/3.4/3.5 and on linux-64 platformYou may go to the site to get the exact version you need.
![Pip Install Opencv Pip Install Opencv](http://www.programmersought.com/images/492/e3f31a226a382fadc95b0783b5239e9c.png)
opencvpython‑3.2.0‑cp36‑cp36m‑winamd64.whl is the basic one. opencvpython‑3.2.0+contrib‑cp36‑cp36m‑winamd64.whl is the onewith opencv-contrib modules such as the text 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 opencvpython‑3.2.0+contrib‑cp36‑cp36m‑winamd64.whlHope this help.Update on 2018-02-22:OpenCV 3.4.0 wheel files are now available in the and replaced OpenCV 3.3.0Update on 2019-01-30:OpenCV 4.0.1 wheel files are now available in the with CPython 3.5/3.6/3.7 support.
![Pip Install Opencv Pip Install Opencv](/uploads/1/2/5/4/125497679/776862915.png)
Pip install opencvpython-3.3.0-cp36-cp36m-winamd64.whl Note the Successfully installed message after each command. At this point, you should be able to play with OpenCV and Python. Step 9: install Numpy, Scipy. Now that you are inside your virtual environment (as evidenced by the '(cv)' prefix in your terminal window), let's install some additional packages for data analysis - numpy and scipy: sudo pip install numpy scipy Step 10: finally, install OpenCV. Note: this will take a long, long, long time.
It's pretty simple.Install Anaconda 3.6. Check anaconda is added to System Variable Path.Open CMD and type conda install -c conda-forge opencv.This will install latest OpenCV version available (3.6).Open IDE editor and try import cv2.It will probably don't work.don't worry.You have to add cv2 command to editor.For Eclipse (with PyDev):Create firs a project and then do the following:For PyCharm:cv2 module probably won't work. Go to the Anaconda folder/Lib/site-packages/cv2 and copy the file cv2.cp36-winamd64.pyd to the site-packages folder. Rename it cv2.pydNow try to write a command. If auto-completition don't work, try cv2.cv2.imread.This will work for sure. I am using Python 3.6.2 and Anaconda 4.3.23 (It should also work with your case).I did the following:.Download the Numpy version corresponding to your Python installation from.
In my case, I’ve used numpy-1.13.1+mkl-cp36-cp36m-winamd64.whl.Download the OpenCV version corresponding to your Python installation from. In my case, I’ve used opencvpython-3.3.0-cp36-cp36m-winamd64.whl.Now go to the folder where you downloaded these files and run the following:pip install numpy-1.13.1+mkl-cp36-cp36m-winamd64.whlpip install opencvpython-3.3.0-cp36-cp36m-winamd64.whlNote the Successfully installed message after each command.At this point, you should be able to play with OpenCV and Python.
Let’s try a small test first. Start the Python interpreter or Jupyter Notebook and write: import cv2print(cv2.version)If everything was correctly installed, you should see the version number of your OpenCV install, in my case this was 3.3.0. I see you found a solution but this may be helpful for others. The package is not available for Python 3.6.
You can check this by going to that package channel on anaconda.org and selecting the files tab. You will see the package tarballs with the Python version listed as py27, py34, py35,etc. This is a good way to check for Python versions of a specific package.You can also run the following to see the package versions and Python versions available for your OS from the Anaconda channel: conda search Or to search a particular channel and package you can do this: conda search -c. I am using python 3.6 and the following worked for me:. Download and install opencv (Win pack) on your computer from the official website:(I took version 3.4.2). Go to the website of Christoph Gohlke and download the wheel file corresponding to your system.
(I took opencvpython-3.4.2-cp36-cp36m-winamd64.whl). As mentioned on the website of Christoph Gohlke, make sure you installed 'numpy1.14' & 'mkl' package. First Download from official site. After installing anaconda, simply open command prompt and type following statement and press enter of course - conda install -c conda-forge opencvIt may take some time. After the completion, check your conda packages by typing conda list - opencv should be there.However, Before proceed to install opencv, you can check whether opencv for python 3.6 is available or not.
We can check it by typing conda info opencv in command prompt and press enter of course, you'll see following - opencv 3.3.1 py36h20b85fd1-file name: opencv-3.3.1-py36h20b85fd1.tar.bz2name: opencvversion: 3.3.1build string: py36h20b85fd1build number: 1channel:: 96.7 MBarch: Noneconstrains: license: BSD 3-clauselicensefamily: BSDmd5: e3445511ace8ade7ae3641platform: Nonesubdir: win-64timestamp: 576url: =9b,=1.6.32,=4.0.9,=1.11.3,=3.6,=1.2.11.