Pyqt5 reports an error when importing the module:
1
ImportError: DLL load failed: Cannot find the specified program
2
ImportError: DLL load failed: Cannot find the specified program
3
ImportError: cannot import name 'QtCore'
The reason for the above error: the versions of pyqt5, pyqt5 SIP and pyqt5 stub modules are not interconnected
The solution is as follows:
-
- Open Win + R for operation, enter CMD to enter the terminal window, and enter it successively in the command line
pip uninstall PyQt5
pip uninstall PyQt5-sip
pip uninstall PyQt5-stubs
And the modules related to pyqt5 (such as pyqt5#u tools) are unloaded, and then input
pip install PyQt5
In this way, the installation already includes the corresponding versions of pyqt5 SIP and pyqt5 stubs. There is no need to install again, and then reinstall the modules related to pyqt5 (just uninstalled), such as PIP install pyqt5_tools
This will run successfully!
Read More:
- How to Solve word2vec Module Error: AttributeError & UnicodeDecodeError
- How to Solve PyInstaller Package Error: ModuleNotFoundError: No module named ‘xxxx‘
- [Mac M1] How to Solve import wordcloud Error: ModuleNotFoundError: No module named ‘wordcloud‘
- How to Solve no module fcntl Error in Windows
- Python: How to Solve multiprocessing module Error in Windows
- How to Solve Python AttributeError: ‘module’ object has no attribute ‘xxx’
- Python pyqt5 ui Generate .py File Error [How to Solve]
- How to Solve Error: Error no module “Tkinter”
- [Solved] Ubuntu18.04 Install pyqt5 error: Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-92
- How to Solve Turtle_tf Error in ROS
- How to Solve M1 chip import numpy Error
- How to Solve Error handling after upgrade pip of Anaconda
- How to Solve Error “ImportError: cannot import name imsave“
- How to Solve Python ImportError: cannot import name UnrewindableBodyError
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- How to Solve Python3.9 Install pycrypto Error
- How to Solve Spyder Version incompatible error
- How to Solve Python Libsm. So. 6 error
- How to Solve ModuleNotFoundError Error After pip-autoremove Installed
- How to Solve PIP Install fasttext Error