ImportError: No module named PyQt4.QtGui

Thomas Jollans t at jollybox.de
Thu Aug 4 05:56:06 EDT 2011


On 04/08/11 11:39, 守株待兔 wrote:
> i have  installed such things:
> 
> sudo apt-get install libqt4-dev
> sudo apt-get install g++ automake
> sudo apt-get install qt4-dev-tools qt4-designer qt4-doc
> sudo apt-get install libqt4-opengl-dev
> sudo apt-get install libqt4-sql-mysql libqt4-sql-odbc libqt4-sql-psql
> libqt4-sql-sqlite libqt4-sql-sqlite2
> 
> when i finished,input
>>>>from PyQt4.QtCore import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named PyQt4.QtCore
>  
> would you mind to tell me how to solve it?
> 
> 

http://lmgtfy.com/?q=debian+pyqt4

You haven't actually installed the python-qt4 bindings yet. All you
installed is the C++ library.



More information about the Python-list mailing list