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:
- ImportError: No module named pkg_resources [How to Solve]
- ImportError: No module named ‘requests’
- fatal pylint error : ……can’t find ‘__main__’module in
- Importerror: no module named yaml solution [How to Solve]
- [Solved] No module named extern.six.moves
- Debian pip3 ImportError: cannot import name ‘IncompleteRead’ [How to Solve]
- How to install PIP in no module named setuptools
- [Solved] ImportError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.
- MAC OS Install opencv ModuleNotFoundError: No module named ‘cv2’
- Error in Python compilation on MAC no module named mysqldb