How to configure PyQt4 for Python 3 in Ubuntu?

前端 未结 3 973
感动是毒
感动是毒 2020-12-01 05:30

This question was originally asked in askubuntu.com but got no attention so I think maybe this is a better place to ask.

I installed PyQt4 with synaptic.

I\'

3条回答
  •  庸人自扰
    2020-12-01 05:56

    You should be able to install the python 3 version of PyQt4 in ubuntu. Open a terminal and type:

    sudo apt-get install python3-pyqt4
    

    This way you don't have to compile Qt4 from source. I have also tested this and pyqt4 works with python3.

    Source: A quick search in the ubuntu repositories.

提交回复
热议问题