简体   繁体   English

如何在 windows python 上安装 Pyqt5

[英]How to install Pyqt5 on windows python

I am trying to install PyQt5 on my Windows 10 python 3.7.我正在尝试在我的 Windows 10 python 3.7 上安装 PyQt5。 I tried several things suggested by different users like:我尝试了不同用户建议的几件事,例如:

  1. Install using pip install on cmd.使用 pip 安装在 cmd 上。 pip not found error is showing.显示 pip not found 错误。

  2. Install PyQt5 from downloaded files.从下载的文件中安装 PyQt5。 Not happening没有发生

  3. Pip3 not working Pip3 不工作

  4. Even my cmd is not recognizing that my pc has a python program on it.甚至我的 cmd 也没有认识到我的电脑上有一个 python 程序。

are you sure you installed python and that you added it to a path?您确定您安装了 python 并将其添加到路径中吗? when you type python in cmd what happens?当您在 cmd 中键入 python 时会发生什么? the following should appear when you type python in cmd:当您在 cmd 中键入 python 时,应出现以下内容:

Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

try to uninstall and install python if necessary.如有必要,请尝试卸载并安装 python。

I suggest trying a few things, and then testing if you can use pip to install pyqt.我建议尝试一些事情,然后测试是否可以使用 pip 安装 pyqt。

  1. Try using pip3 instead of pip or vice versa尝试使用 pip3 而不是 pip 或反之亦然
  2. Try uninstalling and reinstalling python, making sure that you tick the box to add python to path尝试卸载并重新安装 python,确保勾选框以将 python 添加到路径
  3. Restart your computer重启你的电脑

If this doesn't work, then I don't know what else to do.如果这不起作用,那么我不知道还能做什么。

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

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