PyQt 5.3.1 Installation on ubuntu 14.04

I am trying to build PyQt 5.3.1 on ubuntu 14.04. I need a QtWebKit module.

I configured it in the next step

python configure.py -q /usr/lib/x86_64-linux-gnu/qt5/bin/qmake --sip-incdir=/usr/include/python2.7 --sipdir=/usr/share/sip  --enable QtWebKit QtWebKitWidgets

      

I got the following error when i use make

,

$HOME/PyQt-gpl-5.3.1/QtWebKit/sipQtWebKitQWebSettings.cpp:1208:48: error: ‘WebAudioEnabled’ is not a member of ‘QWebSettings’
     {sipName_WebAudioEnabled, static_cast<int>(QWebSettings::WebAudioEnabled), 26},
                                            ^
make[1]: *** [sipQtWebKitQWebSettings.o] Error 1
make[1]: Leaving directory '$HOME/PyQt-gpl-5.3.1/QtWebKit'
make: *** [sub-QtWebKit-make_first-ordered] Error 2

      

How can I fix this?

Thanks in advance.

+3


source to share


1 answer


you can install PyQt5 from pip

instead of building from source. try itpip install Python-Qt5



0


source







All Articles