PyQt5 和 Python 3.6 安装?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41522054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PyQt5 and Python 3.6 installation?
提问by Benedikt K.
can some explain me how to install PyQt5 with Python 3.6?
有人可以解释一下如何使用 Python 3.6 安装 PyQt5 吗?
Operating System Win10
操作系统 Win10
I installed PyQt with
我安装了 PyQt
pip3 install PyQt5
Than i want to follow this Tutorial: https://www.youtube.com/watch?v=Z66AtVqdLUc
比我想按照这个教程:https: //www.youtube.com/watch?v=Z66AtVqdLUc
But i dont have a designer.exe in the PyQt5 folder. Also i miss the pyuic5.bat to convert the .ui file into a .py file (like in the tutorial)
但是我在 PyQt5 文件夹中没有 Designer.exe。我也想念 pyuic5.bat 将 .ui 文件转换为 .py 文件(就像在教程中一样)
Can someone explain me what i do wrong?
有人可以解释我做错了什么吗?
Greetings
你好
Posts: 14
Joined: Tue Apr 05, 2016 8:34 pm
回答by Marcos Tavares
Just use
只需使用
pip3 install pyqt5-tools
then look for the folder pyqt5-tools
in your Lib directory
然后pyqt5-tools
在您的 Lib 目录中查找该文件夹
回答by Azel Ampere
you need to download Qt5 from the site:
您需要从站点下载 Qt5:
回答by John Ruehs
To answer your question, as of right now there is no pyqt5-tools available for Python 3.6, been looking myself.
要回答您的问题,截至目前,没有可用于 Python 3.6 的 pyqt5-tools,我一直在寻找自己。
An another note, use the pyuic5.exe not the .bat. I have used this multiple times already.
另一个注意事项,使用 pyuic5.exe 而不是 .bat。我已经多次使用它了。