zoukankan      html  css  js  c++  java
  • 运行时出现报错:ModuleNotFoundError: No module named 'cv2',ModuleNotFoundError: No module named 'cv2'

    1、运行时出现报错:ModuleNotFoundError: No module named 'cv2'
    Traceback (most recent call last):
      File "<string>", line 7, in <module>
      File "D:Python39libsite-packagescached_property.py", line 36, in __get__
        value = obj.__dict__[self.func.__name__] = self.func(obj)
      File "D:Python39libsite-packagesuiautomator2\__init__.py", line 1756, in widget
        from uiautomator2.widget import Widget
      File "D:Python39libsite-packagesuiautomator2widget.py", line 16, in <module>
        import uiautomator2.image as uim
      File "D:Python39libsite-packagesuiautomator2image.py", line 15, in <module>
        import cv2
    ModuleNotFoundError: No module named 'cv2'
    [Finished 1.042s]

    解决方法:
    安装拓展库:pip install opencv-python

    2、运行时出错:ModuleNotFoundError: No module named 'imutils'

    Traceback (most recent call last):
      File "<string>", line 7, in <module>
      File "D:Python39libsite-packagescached_property.py", line 36, in __get__
        value = obj.__dict__[self.func.__name__] = self.func(obj)
      File "D:Python39libsite-packagesuiautomator2\__init__.py", line 1756, in widget
        from uiautomator2.widget import Widget
      File "D:Python39libsite-packagesuiautomator2widget.py", line 16, in <module>
        import uiautomator2.image as uim
      File "D:Python39libsite-packagesuiautomator2image.py", line 17, in <module>
        import imutils
    ModuleNotFoundError: No module named 'imutils'

    解决方法:pip install imutils

     3、运行时出错:

    ModuleNotFoundError: No module named 'skimage'

    解决方法:
    pip install scikit-image



  • 相关阅读:
    GO学习-(31) Go语言操作Elasticsearch
    GO学习-(30) Go语言操作kafka
    GO学习-(29) Go语言操作etcd
    Maven+Spring打Jar包
    话说Session
    Apache Server与多个独立Tomcat集成
    一套Tomcat处理多个域名请求
    Tomcat多实例
    Linux下安装MySQL
    Java Enum
  • 原文地址:https://www.cnblogs.com/bzdmz/p/14441346.html
Copyright © 2011-2022 走看看