How can I install PyQt5 on Mac?

后端 未结 6 890
醉酒成梦
醉酒成梦 2021-02-07 09:31

I am trying to install PyQt5 on my Mac but I do not know how to use it well. I have tried to install sip doing

cd ~/Downloads/sip-4.17
python configure.py
         


        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-07 10:03

    You need to install SIP first, which is not just running configure.py:

    >>> cd ~/Downloads/sip-4.17
    >>> python configure.py
    >>> make
    >>> make install
    

    Then you can install PyQt5:

    >>> cd ~/Downloads/PyQt-gpl-5.5.1
    >>> python configure.py --qmake /Users/name/Qt/5.5/clang_64/bin/qmake
    >>> make
    >>> make install
    

提交回复
热议问题