简体   繁体   English

PyQt5:如何安装/运行 Qt 设计器

[英]PyQt5: How to install/run Qt Designer

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动 QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经将它的安装目录标识为

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多 .pyd 文件,也有一些 .dll,但没有可执行文件(嗯,除了 ...\\site-packages\\ QtWebEngineProcess.exe ...\\site-packages\\PyQt5\\Qt\\bin中的 QtWebEngineProcess.exe ,但这听起来不像我正在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

Feeling really stupid, right now, but the title says it all:现在感觉真的很愚蠢,但标题说明了一切:

How do you start the QtDesigner?如何启动QtDesigner?

I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as我已经通过pip安装了PyQt5 ,我相信已经确定了将其安装在其中的目录

C:\Users\%username%\AppData\Local\Programs\Python\Python36\Lib\site-packages\PyQt5

Now what?怎么办? There are a lot of .pyd files, some .dll's, too, but nothing executable (well, except a QtWebEngineProcess.exe in ...\\site-packages\\PyQt5\\Qt\\bin , but that doesn't sound like what I'm looking for.有很多的.pyd文件,某些.DLL的,太多,但没有可执行的(当然,除了一个QtWebEngineProcess.exe...\\site-packages\\PyQt5\\Qt\\bin ,但听起来并不像我在寻找。

For Qt Designer 6 this worked for me thanks for that protip from @Bhaskar对于 Qt Designer 6,这对我有用,感谢 @Bhaskar 的提示

pip install pyqt6-tools

Then started:然后开始:

qt6-tools designer

End up with nice working lightweight Qt Designer 6.0.1 version最终得到运行良好的轻量级 Qt Designer 6.0.1 版本在此处输入图像描述

@ pip install pyqt6-tools
Collecting pyqt6-tools
  Using cached pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Collecting pyqt6-plugins<6.1.0.3,>=6.1.0.2.2
  Downloading pyqt6_plugins-6.1.0.2.2-cp39-cp39-manylinux2014_x86_64.whl (77 kB)
     |████████████████████████████████| 77 kB 492 kB/s            
Collecting python-dotenv
  Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Collecting pyqt6==6.1.0
  Downloading PyQt6-6.1.0-cp36.cp37.cp38.cp39-abi3-manylinux_2_28_x86_64.whl (6.8 MB)
     |████████████████████████████████| 6.8 MB 1.0 MB/s            
Requirement already satisfied: click in ./.pyenv/versions/3.9.6/lib/python3.9/site-packages (from pyqt6-tools) (8.0.1)
Collecting PyQt6-sip<14,>=13.1
  Downloading PyQt6_sip-13.2.0-cp39-cp39-manylinux1_x86_64.whl (307 kB)
     |████████████████████████████████| 307 kB 898 kB/s            
Collecting PyQt6-Qt6>=6.1.0
  Using cached PyQt6_Qt6-6.2.2-py3-none-manylinux_2_28_x86_64.whl (50.0 MB)
Collecting qt6-tools<6.1.0.2,>=6.1.0.1.2
  Downloading qt6_tools-6.1.0.1.2-py3-none-any.whl (13 kB)
Collecting click
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     |████████████████████████████████| 82 kB 381 kB/s            
Collecting qt6-applications<6.1.0.3,>=6.1.0.2.2
  Downloading qt6_applications-6.1.0.2.2-py3-none-manylinux2014_x86_64.whl (80.5 MB)
     |████████████████████████████████| 80.5 MB 245 kB/s            
Installing collected packages: qt6-applications, PyQt6-sip, PyQt6-Qt6, click, qt6-tools, pyqt6, python-dotenv, pyqt6-plugins, pyqt6-tools
  Attempting uninstall: click
    Found existing installation: click 8.0.1
    Uninstalling click-8.0.1:
      Successfully uninstalled click-8.0.1
Successfully installed PyQt6-Qt6-6.2.2 PyQt6-sip-13.2.0 click-7.1.2 pyqt6-6.1.0 pyqt6-plugins-6.1.0.2.2 pyqt6-tools-6.1.0.3.2 python-dotenv-0.19.2 qt6-applications-6.1.0.2.2 qt6-tools-6.1.0.1.2

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

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