Python Win 3.6.0 x64 issue, missing qt designer exe after pip3 install pyqt5

后端 未结 4 1719
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 07:03

I\'m a Python newbie and trying to start my first application and am struggling to workout how to use Qt Designer with pyQT5.

I\'ve been using the next command which

相关标签:
4条回答
  • 2021-01-05 07:38

    My solution On Windows

    1. pip3 install pyqt5-tools
    2. open C:\Users\<userName>\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\pyqt5-tools\designer and copy all the content to C:\Users\<userName>\AppData\Local\Programs\Python\Python35-32\lib\site-packages\PyQt5\Qt\bin, don't overwrite files with the same file name!
    0 讨论(0)
  • 2021-01-05 07:41

    At some point during the 3.5 version of Python QT Designer was dropped from the pyqt5 package, and then picked up by the pyqt5_tools package. Unfortunately the tools package is not available for Python 3.6 (at least so far).

    You can download the version 3.5 32-bit or 64-bit pyqt5_tools package from pypi.python.org:

    https://pypi.python.org/pypi/pyqt5-tools/5.7.dev9
    

    Next open the wheel package you downloaded with a zip tool and copy the designer folder and contents to a convenient location. Designer and all the needed dependencies are in this folder. Good luck.

    0 讨论(0)
  • 2021-01-05 07:42

    On WinPython-64bit-3.5.2.2Qt5 I run:

    pip install pyqt5-tools
    

    installs at:

    WinPython-64bit-3.5.2.2Qt5\python-3.5.2.amd64\Lib\site-packages\pyqt5-tools\designer.exe
    

    Starts ok!

    0 讨论(0)
  • 2021-01-05 07:54

    Another way to install QT Designer is as follows:

    1. Install latest QT (I'm using 5.8) from QT main site
    2. Make sure you include "Qt 5.8 MinGW" component
    3. QT Designer will be installed in C:\Qt\5.8\mingw53_32\bin\designer.exe
    4. Note that the executable is named "designer.exe"
    0 讨论(0)
提交回复
热议问题