Ubuntu 15.10 under Install PyQt5

Source: Internet
Author: User

The target is HTTP://WWW.OSCHINA.NET/P/PYQT open source China Client

1 http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#configuring-pyqt5

Download and install Http://www.riverbankcomputing.com/software/pyqt/download5


ERROR:PYQT5 requires Qt v5.0 or later


I want to the install PYQT5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run as it is mentioned on the python configure.py previous link. However, it asks me to install QT 5 or later. Which thing I did.

When I come back to run the command above, I get the same error:

[Email protected]:~/bureau/pyqt-gpl-5.4.1# python configure.py querying qmake about your Qt installation ... ERROR:PYQT5 requires Qt v5.0 or later. You seem to be using v4.8.6. Use The--qmake flag to specify the correct version of Qmake.


However, after QT5 installation, when I run the this: qmake --version


I Get this:


QMake version 2.01a Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu

sudo apt-get install qt5-default,

Error:make sure you has a working sip on your PATH or use the--sip argument to explicitly specify a working SIP
[email protected]:~/bureau/pyqt-gpl-5.4.1# python configure.py querying qmake  About your qt installation ... Determining the details of your qt installation ... this is the gpl version of pyqt 5.4.1  (licensed under the  gnu general publiclicense)  for python 2.7.6 on linux2. type  ' L '  to view the license. type  ' yes '  to accept the terms of the license. type  ' No '  to decline the terms of the license. Do you accept the terms of the license? yesfound the license  file pyqt-gpl.sip.Error: Make sure you have a working sip  on your path or use the --sip argumentto explicitly specify  A workIng sip. 

1 2 3 4 5 6 7 8 9 10 11 you need to install sip first (not just configure it)   begueradj @begueradj :~/Bureau/sip-4.16.7 # python configure.py begueradj @begueradj :~/Bureau/sip-4.16.7 # make begueradj @begueradj :~/Bureau/sip-4.16.7 # make install   and next you can install PyQt :   begueradj @begueradj :~/Bureau/PyQt-gpl-5.4.1 # python configure-ng.py   begueradj @begueradj :~/Bureau/PyQt-gpl-5.4.1 # python configure-ng.py --sip /usr/bin/sip

In file included from greenlet.c:5:0:

GREENLET.H:8:20: Fatal error: Python.h: no file or directory

Compile interrupts.

Error:setup script exited with Error:command ' GCC ' failed with exit status 1

The workaround is to install Python-dev, which is the Python header file and the static library package:

sudo apt-get install Python-dev



Ubuntu 15.10 under Install PyQt5

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.