Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing PyQt

Tags:

python

pyqt

I am now trying to run PyQt. I am still getting the following error when I do the following:

root@localhost:/home/abhowmik/app/imgSeek-0.8.6# cd Py*
root@localhost:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# python configure.py --verbose
Determining the layout of your Qt installation...
/usr/share/qt3//bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o qtdirs.o qtdirs.cpp
qtdirs.cpp:1:17: fatal error: QFile: No such file or directory
compilation terminated.
make: *** [qtdirs.o] Error 1
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
root@localhost:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# ^C
root@localhost:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# 

Can someone help me how to fix the problem?

like image 943
abhowmik Avatar asked Aug 02 '11 03:08

abhowmik


People also ask

What is PIP install PyQt5?

PyQt5 5.15.7 PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android.

Does PyQt work on Windows?

Desktop applications made with PyQt are cross platform, they will work on Microsoft Windows, Apple Mac OS X and Linux computers (including Raspberry Pi).

Can I use PyQt in PyCharm?

As a cross-platform toolkit, PyQt can run on all major operating systems (Unix, Windows (Mac). This article describes how to install Python + PyCharm + PyQt5. With PyQt5, the GUI is designed in two ways: directly using the code to design the interface.


2 Answers

Problem is that configure.py is trying to use qmake from qt3. Try this:

python configure.py --qmake /usr/bin/qmake-qt4

(You might have qmake-qt4 somwhere else than /usr/bin so check that first )

like image 64
J91321 Avatar answered Oct 03 '22 13:10

J91321


Try this, http://samos-it.com/install-pyqt-in-a-virtualenv-with-pip/

Install the development headers (Ubuntu 12.04):

sudo apt-get install libqt4-dev

Then try again

like image 20
UdayaLakmal Avatar answered Oct 03 '22 13:10

UdayaLakmal