title: AttributeError: partially initialized module 'cv2' has no attribute 'imread'
body: <p>Till 1 hour back my opencv code was working perfectly fine. it could run my script without error. but I don't know why some time back suddenly it started giving me this error:</p>
  <pre><code>AttributeError: partially initialized module 'cv2' has no attribute 'imread' (most likely due to a circular import)
  Traceback (most recent call last):
    File &quot;FACEDETECTION.PY&quot;, line 1, in &lt;module&gt;
      import cv2
    File &quot;C:\Users\Lenovo\anaconda3\envs\CAM\lib\site-packages\cv2\__init__.py&quot;, line 5, in &lt;module&gt;
      from .cv2 import *
  ImportError: numpy.core.multiarray failed to import
  </code></pre>
  <p>So what could be the error?</p>
  <p>update: Here is my code-</p>
  <pre><code>import cv2
  import pytesseract
  
  
  pytesseract.pytesseract.tesseract_cmd = &quot;C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe&quot;
  
  path = &quot;text.png&quot;
  img = cv2.imread(path)
  
  img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
  text = pytesseract.image_to_string(img)
  
  
  print(text)
  
  
  cv2.imshow(&quot;name&quot;, img)
  cv2.waitKey(7000)
  </code></pre>