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

╄→尐↘猪︶ㄣ 提交于 2019-11-30 04:50:30

问题


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 installs pyqt5.7.1:

pip3 install pyqt5

After the install, I have a

C:\Python36\Lib\site-packages\PyQt5\Qt\bin\Qt5Designer.dll

file but no Qt Designer exe as far as i can tell.

id really appreciate the help if anyone has any idea what i'm missing? Do I have to install the full Qt5 framework to be able to use Qt Designer and pyQT5?

Thanks

Pete


回答1:


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!




回答2:


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.




回答3:


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!



回答4:


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"


来源:https://stackoverflow.com/questions/41523597/python-win-3-6-0-x64-issue-missing-qt-designer-exe-after-pip3-install-pyqt5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!