简体   繁体   English

在 Windows 上安装 PyQt5 Designer

[英]Installing PyQt5 Designer on windows

I installed PyQt5 using Windows command window and pip3 install PyQt5 as described in the download page , it was installed successfully.我使用 Windows 命令窗口安装了 PyQt5,并按照下载页面中的pip3 install PyQt5 ,安装成功。 but I didn't found PyQt Designer in the Windows Start Menu so I thought I need to install it separately.但是我没有在 Windows 开始菜单中找到 PyQt Designer,所以我想我需要单独安装它。 After searching various forums, I tried adding it using pip3 install pyqt5-tools it shows Successfully installed pyqt5-tools-5.9.0.1.2 but PyQt Designer wasn't installed.在搜索了各种论坛后,我尝试使用pip3 install pyqt5-tools添加它,它显示Successfully installed pyqt5-tools-5.9.0.1.2但未安装 PyQt Designer。

Is there any way to install PyQt Designer?有什么方法可以安装 PyQt Designer?

My Python version:我的 Python 版本:

>>> python --version
Python 3.5.2 :: Anaconda custom (64-bit)

On windows 10, with Python3.5, and pyqt5, I installed pyqt5-tools using pip:在 Windows 10 上,使用 Python3.5 和 pyqt5,我使用 pip 安装了 pyqt5-tools:

pip install pyqt5-tools

and the designer was automatically install in the following folder:并且设计器自动安装在以下文件夹中:

"Python directory"\Python35\Lib\site-packages\pyqt5-tools

try this:尝试这个:

pip install pyqt5
pip install pyqt5-tools

Now you'd find the designer in site-packages/pyqt5-tools.现在您可以在 site-packages/pyqt5-tools 中找到设计器。

Lib\site-packages\qt5_applications\Qt\bin

I think I found a workaround, first I uninstalled PyQt5 and pyqt5-tools-5.9.0.1.2我想我找到了解决方法,首先我卸载PyQt5pyqt5-tools-5.9.0.1.2

pip3 uninstall PyQt5
pip3 uninstall pyqt5-tools-5.9.0.1.2

I went to this page , downloaded the PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe file and installed it normally.我去了这个页面,下载了PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe文件并正常安装。

In most cases, due to updates of the packages or some other reasons, "designer tool" will not be in the default location.在大多数情况下,由于软件包的更新或其他一些原因,“设计器工具”不会在默认位置。

If so, you can find it here:如果是这样,您可以在这里找到它:

C:\Program Files (x86)\Python37-32\Lib\site-packages\pyqt5_tools\Qt\bin C:\Program Files (x86)\Python37-32\Lib\site-packages\pyqt5_tools\Qt\bin

尝试pip install PyQt5Designer它将在lib/QtDesigner/designer.exe

this is might be not much helpful but i just wanted to share, I install pyqt5 using pip with the tools as well and couldn't find PyQt Designer in the Windows Start as well coz I searched "pyqt designer".这可能没什么帮助,但我只是想分享一下,我也使用 pip 和工具安装了 pyqt5,并且在 Windows 开始中也找不到 PyQt Designer,因为我搜索了“pyqt Designer”。 I could find it when i searched "designer" only.当我只搜索“设计师”时,我可以找到它。

pip install pyqt5-tools pip install pyqt5-tools

....\venv\Lib\site-packages\qt5_applications\Qt\bin ....\venv\Lib\site-packages\qt5_applications\Qt\bin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM