inyfee
V2EX  ›  问与答

PyQt5 疑难问题 : No module named PyQt5.uic.pyuic

  •  
  •   inyfee · Jun 6, 2015 · 4877 views
    This topic created in 4128 days ago, the information mentioned may be changed or developed.
    在ubuntu了折腾了几天pyqt,有个问题总是无法解决 ,特来v2ex求问。

    yee@yee-ThinkPad-Edge:~/dev$ pyuic5 untitled.ui
    /usr/bin/python3: No module named PyQt5.uic.pyuic
    显示以上这个错误.


    之前在安装 的时候是这样的:
    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)
    有人说过以忽略,我就忽略了~~但现在没办法用pyuic5

    不知道各位有没有什么办法可以解决。我搜了google好长时间,仍然不知道是怎么搞。
    2 replies    2015-06-06 22:40:42 +08:00
    weyou
        1
    weyou  
       Jun 6, 2015
    32位的系统装了64位的pyuic5? 我乱说的。。。
    inyfee
        2
    inyfee  
    OP
       Jun 6, 2015
    @weyou 不是。我现在想可能是因为Qt 是5.4.2 ,而我装的pyqt是5.4.1. 我重装了pyqt 5.4.2 之后就可以使用pyuic5了。

    此问题已解决 。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2665 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:29 · PVG 22:29 · LAX 07:29 · JFK 10:29
    ♥ Do have faith in what you're doing.