Importerror:no module named Cv2 or Modulenotfounderror:no module named ' Cv2 '

Source: Internet
Author: User

Original aircraft

Original link:https://www.cnblogs.com/DOMLX/p/9747019.html

install opencv-python
在python 下出现opencv报错ImportError: No module named cv2 或 ModuleNotFoundError: No module named ‘cv2‘就这样解决,因为在下跑tensorflow的时候忘记装了,所以纪录一下。

如若没有pip安装,那么安装pip:

(1) Download Pip

Go to Https://pypi.python.org/pypi/pip and download the second item.

(2) Decompression and installation

Unzip the downloaded file (under Windows only decompression tools such as rar,linux under the terminal input TAR-XF pip-9.0.1.tar.gz, that is, TAR-XF file name), into the extracted folder, bring up the command line window or terminal, Windows input

install
 

Linux under Input

sudo python setup.py install
 

After the installation has been successfully tested, enter

-v






参考博客:70568434/

Importerror:no module named Cv2 or Modulenotfounderror:no module named ' Cv2 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.