I
I
Ivan Melnikov2018-06-05 21:27:27
Python
Ivan Melnikov, 2018-06-05 21:27:27

ImportError: No module named 'cv2' error when trying to use the OpenCV package after installing on Python 3.6. How to get rid?

Installed the OpenCV 3.4.1 package via pip. The installation was successful. OS - Windows 7, 64-bit.
In cmd.exe the module is located:

import cv2
print(cv2.__version__)

produces
3.4.1.
But the Wing IDE 101 does not see:
builtins.ImportError: No module named 'cv2'.
What's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Web Dentist, 2018-06-05
@kgb_zor

Most likely you have created a virtual environment. And cv2 installed globally. In cmd, source your environment and do pip for it.

A
Alexander Osherov, 2018-06-07
@Alexandr2001

If python2 is installed on the computer, opencv could be installed on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question