title: How to install PyQt6 in Anaconda?
body: <p>I have Anaconda with Python 3. I would like to install PyQt6. Through the Anaconda prompt and in the desired environment I tried:</p>
  <pre><code>pip install PyQt6
  </code></pre>
  <p>However, when I try:</p>
  <pre><code>from PyQt6.QtWidgets import QApplication, QLabel, QMainWindow
  </code></pre>
  <p>I get:</p>
  <pre><code>ModuleNotFoundError: No module named 'PyQt6.QtWidgets'; 'PyQt6' is not a package
  </code></pre>
  <p>I also checked through the Anaconda navigator, and it seems PyQt6 is installed. What is the issue?</p>
  <p><a href="https://i.stack.imgur.com/AXMlC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AXMlC.png" alt="enter image description here" /></a></p>