为什么 requirements.txt 安装了一个不在其中的包?

问题描述 投票:0回答:0

我正在尝试安装一个省略 PyQt6 的 requirements.txt 文件,但是,在完成标准安装后,它会出错并尝试强制安装 PyQt6:

Collecting PyQt6
  Using cached PyQt6-6.5.0.tar.gz (1.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 /tmp/tmpwym4so6w prepare_metadata_for_build_wheel /tmp/tmp0oz80kat
         cwd: /tmp/pip-install-0r_i0qvq/PyQt6
    Complete output (31 lines):
    Traceback (most recent call last):
      File "/tmp/tmpwym4so6w", 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'

据我所知,python 3.8 不支持此功能,但这会导致一些中等规模的问题,因为似乎软件包没有成功安装。

我该如何绕过这个?

谢谢!

python pip pyqt
© www.soinside.com 2019 - 2024. All rights reserved.