I donwloaded PyQt6 using pip install pyqt6 and it had a bunch of errors so I uninstalled it and reinstalled it with pip install pyqt6 --user and the errors dissappeared. problem is trying to use it in VSCODe or any other ide doesn't work. When i write:
from PyQt6.QtWidgets import QApplication, QMainWindow, QAction, QMenu, QMessageBox VSCode gives me the error Import "PyQt6.QtWidgets" could not be resolved. Could someone walk me through what I may of done wrong please?
Asked
Active
Viewed 135 times
0
Jerome B
- 1
-
Do the answers to this [question](https://stackoverflow.com/questions/2812520/dealing-with-multiple-python-versions-and-pip) help at all? – quamrana Apr 09 '22 at 16:41
-
I don't use VSCode so I'm not sure, but, isn't that just a warning? Have you tried to run the code? Because an actual failed import should show `ImportError: No module named 'PyQt6'` or `ImportError: cannot import name <...>`. Those warnings are often caused by issues from the IDE configuration, but don't automatically mean that the program won't run. – musicamante Apr 09 '22 at 22:37