Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install PyQt6 in Anaconda?

I have Anaconda with Python 3. I would like to install PyQt6. Through the Anaconda prompt and in the desired environment I tried:

pip install PyQt6

However, when I try:

from PyQt6.QtWidgets import QApplication, QLabel, QMainWindow

I get:

ModuleNotFoundError: No module named 'PyQt6.QtWidgets'; 'PyQt6' is not a package

I also checked through the Anaconda navigator, and it seems PyQt6 is installed. What is the issue?

enter image description here

like image 660
MOON Avatar asked Dec 13 '25 12:12

MOON


1 Answers

conda-forge packages currently do not have pyqt6 available.

5.12.3 is the latest.

Although pulling pyqt from Anaconda Navigator will give version 5.9.2 at this point in time.

I'd suggest checking conda forge in time: https://anaconda.org/conda-forge/pyqt/files

like image 120
WillCo Avatar answered Dec 16 '25 21:12

WillCo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!