modulenotfounderror: no module named ‘cv2’ [How to Solve]

PIP install OpenCV Python
in Python, OpenCV reports an error. Importerror: no module named CV2 or modulenotfounderror: no module named ‘CV2’ is solved in this way. Because I forgot to install it when I was running TensorFlow, I recorded it. If pip is not installed, install PIP:

(1) Download PIP

Enter https://pypi.python.org/pypi/pip, download the second item

(2) decompression and installation

Unzip the downloaded file (only use unzip tools under windows, such as rar, and input tar – XF pip-9.0.1.tar.gz, or tar – XF file name at the terminal under Linux), enter the unzipped folder, call out the command line window or terminal, and input it under windows

python setup.py install

Input under Linux

sudo python setup.py install

After the installation is successful, enter

pip -v

Similar Posts: