Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to install PyQt5 for python3 from source files.

I install SIP correctly.

Then when I want to prepare the make file for installing PyQt, I get this error:

#python3 configure.py

Error: /usr/bin/qmake failed to create a makefile. Make sure you have a working
Qt qmake on your PATH or use the -q argument to explicitly specify a working Qt
qmake.
share|improve this question
    
What is your distribution, and why not use a binary package? –  Faheem Mitha Aug 6 at 20:44
    
I'm using debian/xbuntu. Binary package will install pyqt just for default version of python which is 2.7 and I want it to be installed for python 3. –  HaTiMuX Aug 6 at 21:41
    
There's a python3-pyqt5 package in Debian. You could backport it. Probably similar comments apply to Xubuntu. –  Faheem Mitha Aug 6 at 21:52
    
Yes it is working with this package. But I still want to know how to resolve this error. Thanks. –  HaTiMuX Aug 7 at 9:04
    
Check the build dependencies for the python3-pyqt5 and see if they are satisfied. –  Faheem Mitha Aug 7 at 13:34

1 Answer 1

Perhaps you do not have qmake installed. On Fedora this is in the Qt -devel package, but on debian / ubuntu it may be in it's own package; the two most likely candidates are:

> apt-cache search qmake
qt3-dev-tools - Qt3 development tools
qt4-qmake - Qt 4 qmake Makefile generator tool

You should be able to type which qmake and get a reply such as /usr/bin/qmake.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.