ImportError: cannot import name 'QIntValidator' from 'PyQt5.QtWidgets' (E:\anaconda\lib\site-packages\PyQt5\QtWidgets.pyd)
时间: 2023-09-21 19:11:04 浏览: 399
QIntValidator设置范围无效解决办法
This error message indicates that there is a problem importing the QIntValidator class from the PyQt5.QtWidgets module. This could be caused by a few different issues, including:
1. The QIntValidator class may not be included in the version of PyQt5 that you are using. Check the documentation for your version of PyQt5 to see if this class is supported.
2. There may be a problem with your installation of PyQt5. Try reinstalling PyQt5 and/or ensuring that you have the correct version installed for your system.
3. There may be a problem with your Python environment. Try creating a new virtual environment and installing PyQt5 in that environment to see if the issue persists.
阅读全文