PYQT5 installation failure problem sharing in Python

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.