相关疑难解决方法(0)

如何在Windows上安装PyQt5?

当我尝试使用该命令在Windows上安装PyQt5时

python configure.py
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Error: Make sure you have a working Qt qmake on your PATH.
Run Code Online (Sandbox Code Playgroud)

我从PyQt5下载了pyQt5 .

我该如何安装PyQt5?


更新:

Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB)Qt下载页面安装,现在我有这个错误:

Querying qmake about your Qt installation...
Determining the details of your Qt installation...
Error: Failed to determine the detail of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
Run Code Online (Sandbox Code Playgroud)

当我执行命令时python configure.py --verbose:

Querying qmake about your …
Run Code Online (Sandbox Code Playgroud)

python windows qt nmake pyqt5

26
推荐指数
5
解决办法
14万
查看次数

AttributeError: 模块“sipbuild.api”没有 PyQt5 5.15.0 的属性“prepare_metadata_for_build_wheel”

我尝试安装的程序需要安装 PyQt5 5.15.0 ,这给了我这个错误。奇怪的是,安装适用于最新版本的 PyQt5 (5.15.2),但该程序特别需要 5.15.0。

命令输出:

Collecting PyQt5==5.15.0
  Using cached PyQt5-5.15.0.tar.gz (3.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\mshal\appdata\local\programs\python\python39\python.exe' 'C:\Users\mshal\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\mshal\AppData\Local\Temp\tmp41s11ev6'
         cwd: C:\Users\mshal\AppData\Local\Temp\pip-install-sfw90hvc\pyqt5_e2cc46859b554da7b84798abae5378ba
    Complete output (31 lines):
    Traceback (most recent call last):
      File "C:\Users\mshal\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\pep517\_in_process.py", line 126, in prepare_metadata_for_build_wheel
        hook = backend.prepare_metadata_for_build_wheel
    AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'

    During handling of the above exception, another exception …
Run Code Online (Sandbox Code Playgroud)

python pip python-3.x pyqt5

11
推荐指数
7
解决办法
5724
查看次数

尝试安装 PyQT5 时,Pip 安装卡在“准备车轮元数据...”上

我正在尝试在我的 Raspberry Pi 上安装 PyQT5 并使用命令sudo pip3 install pyqt5. 但是现在它已经卡在上面一个多小时了,我开始感到沮丧,因为它仍然在移动,所以它没有崩溃或任何事情。有没有解决方法,或者我错过了什么?提前致谢

python pip pyqt raspberry-pi pyqt5

6
推荐指数
6
解决办法
1092
查看次数

标签 统计

pyqt5 ×3

python ×3

pip ×2

nmake ×1

pyqt ×1

python-3.x ×1

qt ×1

raspberry-pi ×1

windows ×1