10

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

valiano
  • 16,433
  • 7
  • 64
  • 79
Dhruv Marwha
  • 1,064
  • 2
  • 14
  • 26
  • 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: http://docs.opencv.org/2.4/doc/tutorials/introduction/table_of_content_introduction/table_of_content_introduction.html – svohara Feb 17 '16 at 20:32
  • do both conda and pip install it will work fine – classicdude7 Dec 19 '18 at 07:13

5 Answers5

8
  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".

Laurens_vg
  • 81
  • 1
  • 3
6

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

Dhruv Marwha
  • 1,064
  • 2
  • 14
  • 26
3

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

conda install opencv
Vikash Kumar
  • 348
  • 1
  • 9
2

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.

Hsiao Yi
  • 117
  • 2
  • 13
1

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

pip install opencv-contrib-python

Saily_Shah
  • 85
  • 1
  • 10