I am getting error while installing cv2 package from project interpreter.
Error occured: 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 cv2
Please help me solve this error.
The package name is actually
opencv-python
. So you should do: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:
But that is actually not the package name on pypi. See the documentation on pypi for more details.
In pycharm go to :
In the top right corner of the grid listing the packages, click the green plus button A popup "Available packages" will appear
If no package is available in the list in the left, click the "Manage repositories" button, add this package URL (https://pypi.python.org/simple), then restart pycharm (You may also need to update pycharm to the lastest version, there was a bug here)
In the search box type "opencv-python"
Select the "opencv-python" package in the list and click the "Install Package" button in the bottom left of the popup