Python 2.7 cannot import PyQt4

前端 未结 6 1423
無奈伤痛
無奈伤痛 2021-01-04 10:34

I\'ve upgraded to Python 2.7 from Python 2.6 on Ubuntu Maverick Meerkat (10.10) and I\'m unable to import PyQt4.

austin@gerald:~$ python2.7
Python 2.7.0+ (r2         


        
6条回答
  •  自闭症患者
    2021-01-04 10:59

    You should install PyQt4 in the Python 2.7 environment. To do this run

    easy_install2.7 PyQt4
    

    If easy_install is not installed you will need to first download and install it by running

    python2.7 setup.py install
    

提交回复
热议问题