2011-08-02 37 views
10

我现在正在尝试运行PyQt。我仍然得到以下错误 当我做到以下几点:安装PyQt时出错

[email protected]:/home/abhowmik/app/imgSeek-0.8.6# cd Py* 
[email protected]:/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. 
[email protected]:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# ^C 
[email protected]:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# 

有人能帮助我如何解决这一问题?

+1

我不认为导入是你在这里的问题... –

+0

如果你正在尝试安装Qt,发布详细信息它,操作系统,蟒蛇版...以及你为什么要做a,b或c方式。 – BrainStorm

+2

几乎所有的系统都带有一个py-qt包。你可能想要安装它。 – Carpetsmoker

回答

10

问题是configure.py试图从qt3使用qmake。试试这个:

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

(你可能有QMAKE-QT4 somwhere否则在/ usr/bin中,以便检查第一)

1

这是为我工作在CentOS 6.5

这个工作对我来说希望它可以帮助你也是。也请确保你有正确版本的qt安装通常需要使用qt版本> 4.7