I\'m quite new to Mac OS X. when i tried to install PyQt on Mac Os X after installing python 3.1, Qt 4.6.2 and SIP 4.10.1 i encounter the following error when i execute $pyt
I had the same problem as you had. The solution is rather simple.
Because of a bug in configure.py of PyQt4, you are not supposed to have a space character in your PyQt4 source directory path. The error is due to a wrong syntax when configure.py invokes sip executable on an input path with spaces.
You can also use PyQtX, which is a binary distribution of PyQt for OS X and also includes Qt libraries. You just need Python for it.
Since you are using PyQt v4.7
you need to install Qt v4.7
too, go ahead and install Qt v4.7.1
first.
Try using brew:
brew install pyqt
It is more highly recommended than macports now.
QT and PyQT also available to install on OSX using Homebrew
I had this problem, and indeed my PyQt source folder was in a directory which had a space character somewhere in the path.
I was able to make this work by moving the PyQt source folder to the root, and running python configure.py from there.