How to install PyQt on Mac OS X 10.6

前端 未结 6 854
醉酒成梦
醉酒成梦 2020-12-30 09:57

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

相关标签:
6条回答
  • 2020-12-30 10:31

    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.

    0 讨论(0)
  • 2020-12-30 10:34

    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.

    0 讨论(0)
  • 2020-12-30 10:40

    Since you are using PyQt v4.7 you need to install Qt v4.7 too, go ahead and install Qt v4.7.1 first.

    0 讨论(0)
  • 2020-12-30 10:43

    Try using brew:

    brew install pyqt
    

    It is more highly recommended than macports now.

    0 讨论(0)
  • 2020-12-30 10:48

    QT and PyQT also available to install on OSX using Homebrew

    0 讨论(0)
  • 2020-12-30 10:48

    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.

    0 讨论(0)
提交回复
热议问题