ImportError: cannot import name 'QIntValidator' from 'PyQt5.QtWidgets' (E:\anaconda\lib\site-packages\PyQt5\QtWidgets.pyd)
时间: 2023-09-29 11:10:34 浏览: 99
QIntValidator设置范围无效解决办法
This error message indicates that the QIntValidator class could not be imported from the PyQt5.QtWidgets module. This could be caused by a few different issues:
1. The PyQt5 module may not be installed on your system. You can try running `pip install pyqt5` to install it.
2. There may be a version mismatch between your PyQt5 installation and the version of Qt that it is trying to use. Make sure that you have the correct version of PyQt5 installed for your version of Qt.
3. There may be an issue with your Python environment or installation. Try running the code in a new environment or reinstalling Python.
阅读全文