This article mainly introduces you to the Python PYQT5 installation Failure Problem resolution method, the article gives the detailed solution process and the solution, to the same encounter this problem of friends have a certain reference learning value, the need for friends to follow the small series to learn together.
Objective
Recently encountered a problem in the work, Python pyqt5 in the installation of the time unexpectedly prompt failed, helpless can only find a solution, found on the internet have the same problem classmate, so summed up the solution to share out, the following words do not say, come together to see the detailed introduction:
Discover problems
The previous command is a PIP command, will automatically install the dependent library, but encountered a problem when installing PYQT5
When you are finished downloading PYQT5, you will be prompted to find a suitable SIP version
Could not find a version this satisfies the requirement sip>=4.19 (from PYQT5) (from versions:) No matching Distributi On found for sip>=4.19 (from PYQT5)
Manual pip install sip
can not be installed, prompted to find the appropriate version, it is Strange
I downloaded all the WHL file versions of SIP, and the PIP installation indicates that it is not compatible with the current machine platform and cannot be installed.
Then download the source code compilation installation, in order to be able to compile and install the MINGW32, so that you can use MAKE,GCC and other commands. After the compilation and installation, and then through the pip install pyqt5
still can not be loaded, prompting the same error.
So also thought download source code compiled installation PYQT5, compile this is more troublesome, configuration for half a day, compiled but.
Workaround
Toss the long time, finally how to solve it?
Uninstalled the python3.4, downloaded and installed python3.5, and then a command to get it pip install pyqt5
done.
Old version of Python cannot install the latest pyqt5 meaning?
python3.5 write good code, Pyinstaller packaged well, WIN7 run normally, XP computer can not run.
Tip You cannot locate the program input point getfinalpathnamebyhandlew the dynamic link library Kernel32.dll.
Baidu said:python3.5 no longer support XP, need to python3.4.
Summarize