How to install PyQt on Ubuntu 12.04 with python 2.7?

前端 未结 2 1610
独厮守ぢ
独厮守ぢ 2021-02-05 06:38

There may be some similar questions like this one, but I didn\'t find any answer for me.

I tried some ways to do it like:

sudo aptitude install python-qt4-

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 07:11

    On aws ubuntu (12.04 and 14.04):

    sudo apt-get update
    sudo apt-get install python-qt4
    sudo apt-get install libxml2-dev libxslt1-dev python-dev
    sudo apt-get install python-lxml
    sudo apt-get install xvfb
    

    Check this link and generate your-own-example.py

    DISPLAY=localhost:1.0 xvfb-run python your-own-example.py
    

    Voila.

提交回复
热议问题