10
votes

I have searched quite a bit regarding this and I've tried some of these methods myself but I'm unable to work with OpenCV.So can anyone of you help me install OpenCV for python 3.5.1?

I'm using anaconda along with Pycharm in windows

Or is this not possible and i have to use python 2.7?

Thanks in advance

5
Python 3.4 is supported by OpenCV 3.x, not sure if there would be any issues with Python 3.5.1. Link to installation instructions for various platforms: docs.opencv.org/2.4/doc/tutorials/introduction/… - svohara
do both conda and pip install it will work fine - classicdude7

5 Answers

8
votes
  1. First you need to install Microsoft Visual C++ 2015 Redistributable, which you can download from https://www.microsoft.com/en-us/download/details.aspx?id=53587.
  2. Then you can download the wheel file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv. Make sure you download the file which corresponds to your python version. For example: my python version is 3.5 so I downloaded opencv_python-3.2.0+contrib-cp35-cp35m-win_amd64.whl.

  3. And install it with "pip install filename".

7
votes

For anyone who would like to install OpenCV on Python 3.5.1,use this library called

opencv-contrib-python

This library works for Python 3.5.1

2
votes

I don't really know how we can help you. Because you didn't specify the OS. As far as I know, there are many resources in answers.opencv.org. A question similar what you asked is answered here.

2
votes

Quick solution for anaconda users - Go to anaconda prompt run -

conda install opencv
1
votes

For OS:Windows 10 and Python version: 3.5.1 & 3.6, this worked for me

pip install opencv-contrib-python