Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing OpenCV in pycharm - python 3.5.3

I am getting error while installing OpenCV package from project interpreter.

Error occurred: Non zero exit code(1)

When I execute command, pip install cv2 ..it gives error as,

Could not find a version that satisfies the requirement cv2(from versions: )No matching distribution found for OpenCV

Please help me solve this error.

like image 423
Ayyswariyaa Avatar asked Dec 11 '25 14:12

Ayyswariyaa


1 Answers

The package name is actually opencv-python. So you should do:

pip install opencv-python

However, the package is only available on pypi for version 3, not for version 2. I think the misunderstanding could come from when you are actually importing the package you do:

import cv2

But that is actually not the package name on pypi. See the documentation on pypi for more details.

like image 173
yanxun Avatar answered Dec 14 '25 12:12

yanxun