ImportError: No module named PytQt5

后端 未结 5 718
礼貌的吻别
礼貌的吻别 2020-12-14 01:02

following are my python, qt and sip versions

root@thura:~# python -V
Python 2.7.3
root@thura:~# qmake --version
QMake version 3.0
Using Qt version 5.0.2 in /         


        
5条回答
  •  醉话见心
    2020-12-14 01:50

    After getting the help from @Blender, @ekhumoro and @Dan, I understand the Linux and Python more than before. Thank you. I got the an idea by @ekhumoro, it is I didn't install PyQt5 correctly. So I delete PyQt5 folder and download again. And redo everything from very start.

    After redoing, I got the error as my last update at my question. So, when I search at stack, I got the following solution from here

    sudo ln -s /usr/include/python2.7 /usr/local/include/python2.7
    

    And then, I did "sudo make" and "sudo make install" step by step. After "sudo make install", I got the following error. But I ignored it and I created a simple design with qt designer. And I converted it into python file by pyuic5. Everything are going well.

    install -m 755 -p /home/thura/PyQt/pyuic5 /usr/bin/
    strip /usr/bin/pyuic5
    strip:/usr/bin/pyuic5: File format not recognized
    make: [install_pyuic5] Error 1 (ignored)
    

提交回复
热议问题