Cannot import PyQt4.QtGui

后端 未结 10 2031
情话喂你
情话喂你 2020-11-30 08:52

I have a working Python 2.6 install and just installed the PyQt4 built for Python 2.6 (available at http://www.riverbankcomputing.co.uk/software/pyqt/download). When I try t

10条回答
  •  心在旅途
    2020-11-30 09:46

    None of these solutions worked for me with 64bit Python 3.5. I ended up rolling back Anaconda to 4.1.1 (4.2.0 uses a Qt5 by default, which may or may not be the problem). I also had to install pyqt from a python 3.5 whl - http://www.lfd.uci.edu/%7Egohlke/pythonlibs/#pyqt4.

    The binary file on the Riverbank website did not work for me, possibly it only works on Python 3.4?

    I have installed pyqt with Anaconda several times, and I believe if it is done correctly the PATH does not need modification (it happens as part of installation) and DLLs do not need to be copied.

提交回复
热议问题