Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Debug is human, de-fix divine.


devel / comp.lang.python / PyQt5 is not recognized from python 3.8 installation in python 3.10

SubjectAuthor
* PyQt5 is not recognized from python 3.8 installation in python 3.10Mohsen Owzar
+- Re: PyQt5 is not recognized from python 3.8 installation in pythonChris Angelico
`- Re: PyQt5 is not recognized from python 3.8 installation in pythonMats Wichmann

1
PyQt5 is not recognized from python 3.8 installation in python 3.10

<a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14709&group=comp.lang.python#14709

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a05:6214:c69:: with SMTP id t9mr29054627qvj.28.1629637482749; Sun, 22 Aug 2021 06:04:42 -0700 (PDT)
X-Received: by 2002:aed:2149:: with SMTP id 67mr24960767qtc.60.1629637482572; Sun, 22 Aug 2021 06:04:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Sun, 22 Aug 2021 06:04:42 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1711:fa54:36a0:d191:7ac1:3ac8:ec51; posting-account=BtTavwoAAACMi3AFrA3U-JBERbxGUGhD
NNTP-Posting-Host: 2001:1711:fa54:36a0:d191:7ac1:3ac8:ec51
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>
Subject: PyQt5 is not recognized from python 3.8 installation in python 3.10
From: mohsen.o...@gmail.com (Mohsen Owzar)
Injection-Date: Sun, 22 Aug 2021 13:04:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 85
 by: Mohsen Owzar - Sun, 22 Aug 2021 13:04 UTC

Hi guys,
I have on my laptop the python installation 3.8 and newly I installed newest version 3.10 as well on my laptop.
Now I have two IDLEs for both of the installations.
When I rund some *.py file, having PyQt5 module, on the 3.8 version, it works as before without any problems.
But whenn I run the same file on IDLE with 3.10 installation, it crashes and says that PyQt5 is not known.

I tried to install this package with"pip install pyqt5" or with "py -3 -m pip install pyqt5", it brings lots of error messages (long long) as the lines below (they are only the beginning of the messages):
=================================================C:\Users\Mohsen>py -3 -m pip install pyqt5
Collecting pyqt5
Using cached PyQt5-5.15.4.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\Mohsen\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Mohsen\AppData\Local\Temp\tmprax0esmt'
cwd: C:\Users\Mohsen\AppData\Local\Temp\pip-install-wl_b58e9\pyqt5_1cbd1bab46fa4abaad34b55514561ce6
Complete output (33 lines):
Querying qmake about your Qt installation...
C:\Qt\4.7.4\bin\qmake.exe -query
Traceback (most recent call last):
File "C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 143, 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 occurred:

Traceback (most recent call last):
File "C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 349, in <module>
main()
File "C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 331, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
=============================================It begins with "PyQt5-5.15.4.tar.gz" and goes down "PyQt5-5.15.3.tar.gz" and so on, after it cannot install that version.
After it reaches the "PyQt5-5.14.0.tar.gz" it breaks the downloading and bring this message
=============================================WARNING: Discarding https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz#sha256=2f230f2dbd767099de7a0cb915abdf0cbc3256a0b5bb910eb09b99117db7a65b (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Mohsen\AppData\Local\Temp\tmp6t_i9jm7' Check the logs for full command output.
Downloading PyQt5-5.14.0.tar.gz (3.2 MB)
|████████████████████████████████| 3.2 MB 3.3 MB/s
ERROR: pyqt5 from https://files.pythonhosted.org/packages/7c/5b/e760ec4f868cb77cee45b4554bf15d3fe6972176e89c4e3faac941213694/PyQt5-5.14.0.tar.gz#sha256=0145a6b7de15756366decb736c349a0cb510d706c83fda5b8cd9e0557bc1da72 has a pyproject.toml file that does not comply with PEP 518: 'build-system.requires' contains an invalid requirement: 'sip >=5.0.1 <6'
=============================================
What is wrong with my installations.
How can I get all the packages available in 3.8 version also available for 3.10 version without any new installation in 3.10 for each all already existing packages?

Thanks a lot in advance for you contributions.
Mohsen

Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

<mailman.454.1629660494.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14717&group=comp.lang.python#14717

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: PyQt5 is not recognized from python 3.8 installation in python
3.10
Date: Mon, 23 Aug 2021 05:28:00 +1000
Lines: 24
Message-ID: <mailman.454.1629660494.4164.python-list@python.org>
References: <a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>
<CAPTjJmpBKz-f+eZJNmpQVjuFLtFRhGeNLHrWrQZ+aOVjCCsmZg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de F2b2DQ8UiVrae27CT2MeEwlE7BhzvVwsA8+sdksLZ0wQ==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=M6mpL6YC;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; '3.8': 0.05;
'subject:python': 0.06; 'aug': 0.09; 'dependencies': 0.09;
'line:': 0.09; 'subject:installation': 0.09; 'subject:not': 0.09;
'3.10': 0.16; 'chrisa': 0.16; 'compiled': 0.16; 'especially,':
0.16; 'flag': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; 'pyqt5': 0.16; 'separately': 0.16;
'subject:3.10': 0.16; 'subject:3.8': 0.16; 'subject:PyQt5': 0.16;
'wrote:': 0.16; 'maybe': 0.20; 'installed': 0.20; 'issue': 0.20;
'install': 0.22; 'version': 0.22; 'problem,': 0.23; 'to:addr
:python-list': 0.23; 'tried': 0.26; 'version.': 0.28; 'coming':
0.29; 'there': 0.31; 'packages': 0.31; 'but': 0.31; "i'm": 0.32;
'23,': 0.32; 'differences': 0.32; 'to:name:python': 0.32;
'message-id:@mail.gmail.com': 0.33; 'using': 0.33;
'received:209.85.166': 0.33; 'header:In-Reply-To:1': 0.33;
'received:google.com': 0.34; 'subject:from': 0.35; 'track': 0.35;
'from:addr:gmail.com': 0.35; 'trying': 0.36; 'way': 0.37;
"that's": 0.37; 'received:209.85': 0.38; 'file': 0.38; "it's":
0.38; 'received:209': 0.38; 'called': 0.40; 'package': 0.40;
'potential': 0.61; 'best': 0.61; 'simply': 0.62; 'here': 0.62;
'your': 0.64; 'care': 0.67; 'significant': 0.74; '2021': 0.84;
'minor': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=XBztO0riZWFGmszYpBqtfbBmHoApvazwZhxNnlaisYc=;
b=M6mpL6YCzE7Kuc7qGqF+8nzgUaij1+cYuXBZJHM6EgttAJtM0Fy5SlPCXRd/DyulD7
PiygGKTcij2qhPxrppdr/dJTqycYDUH/54S9XGa0GpAMrP/UUL7zZK212CAAxUyZuMKu
T/HgdXK8Mr2BfDD30v2eVSDQsWpsunjp3ZkjsodyMcyhLbXYKukUDHcEhYYIzxczyiAV
vL+mMDKfjBie3ny/2zRDWz4k9G0+eC54v8U/EXAVmOh35DZLAgY8q0o770Ti+LrYuSux
oHjn8tHHhMD4IY3JlCe89jm4ZboGID+qUZ6ezM8hehj8xVY/+IDxhsB+kJTIoBlhB0h/
NQgg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=XBztO0riZWFGmszYpBqtfbBmHoApvazwZhxNnlaisYc=;
b=k2mTkdFEwe0C+WhHzGVokeZfHumv/+FqrK+Yosz040LDDyaf5C6n1Nx2MlmfKX+i+5
mSIU/Vc292cxFu+JVNS48NBEQxMUaWIMDCb+NVUHXc0tNFVFdSqMrFJisobnaL5XM1L7
V5EqEWMNzJKWbB4AI4nWMkcbyJwnyMFocUXDCl6S40T//Erd2CiBzl1DovXTN7x6Plg/
tyB4rOUMNITbqGHHTqoQF/p0FBYQkxKZMAyP8KQElWz3BrsIazlpJEUFIZA5sn2VmYgH
cMhB9Dto0VpPy6d834ImIJoeDoCaYjudBjcJIqVm6onLLUKIdWjuGuQ7KXMY6BYTMPoQ
XWFw==
X-Gm-Message-State: AOAM533r49dd450ThUO2jgIStmf0GvcJxKoqKYGHw+Cx/43Bt5pXxwea
OlBgUGwuUEMqukPmCgTCLLgBGdTYdwBjOxqnsOLt1pvrj5U=
X-Google-Smtp-Source: ABdhPJwnvFiRsgJy0um5dVs5ohX9iCoN/EOjgYnwqnFXXfudnGU+Y91o2FPoqsagQd4QBCxuPsKZ7rki/CLdcgMb8OM=
X-Received: by 2002:a02:2a07:: with SMTP id w7mr26615534jaw.96.1629660490952;
Sun, 22 Aug 2021 12:28:10 -0700 (PDT)
In-Reply-To: <a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmpBKz-f+eZJNmpQVjuFLtFRhGeNLHrWrQZ+aOVjCCsmZg@mail.gmail.com>
X-Mailman-Original-References: <a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>
 by: Chris Angelico - Sun, 22 Aug 2021 19:28 UTC

On Mon, Aug 23, 2021 at 4:31 AM Mohsen Owzar <mohsen.owzar@gmail.com> wrote:
> How can I get all the packages available in 3.8 version also available for 3.10 version without any new installation in 3.10 for each all already existing packages?
>

You can't. With compiled binaries, especially, it's important to
install into each version separately - there can be minor differences
which will be taken care of by the installer. Normally, that's not a
problem, other than that you have to install each one again; the best
way would be to keep track of your package dependencies in a file
called requirements.txt, and then you can simply install from that
(python3 -m pip install -r requirements.txt) into the new version.

As to PyQt5 specifically, though.... I don't know what the issue here
is, but I tried it on my system and it successfully installed version
5.15.4. Are you using the latest version of pip? There might be some
other requirements. Alternatively, I'm seeing a potential red flag
from this line:

> C:\Qt\4.7.4\bin\qmake.exe -query

You're trying to install Qt5, but maybe it's coming across a Qt4
installation? Not sure if that's significant or not.

ChrisA

Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

<mailman.455.1629673069.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14719&group=comp.lang.python#14719

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: mat...@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: PyQt5 is not recognized from python 3.8 installation in python
3.10
Date: Sun, 22 Aug 2021 16:55:28 -0600
Lines: 75
Message-ID: <mailman.455.1629673069.4164.python-list@python.org>
References: <a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>
<dc0108a8-e96a-d2dc-7c3b-6929f7d1305d@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de DAmgMQLHEmxo+N0xrN9TdAm/MDbygtApRZXAtJBYb/TQ==
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pobox.com header.i=@pobox.com header.b=AQcGQ41l;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'pip':
0.04; 'traceback': 0.04; '(most': 0.05; '3.8': 0.05; 'error:':
0.05; 'laptop.': 0.05; 'last):': 0.05; 'subject:python': 0.06;
'e.g.': 0.07; 'exit': 0.07; 'anyway,': 0.09; 'collecting': 0.09;
'compiler': 0.09; 'dependencies': 0.09; 'explicit': 0.09; 'guys,':
0.09; 'idle': 0.09; 'subject:installation': 0.09; 'subject:not':
0.09; 'theory': 0.09; 'looks': 0.11; 'problem': 0.15; "(there's":
0.16; '3.10': 0.16; '_are_': 0.16; 'command:': 0.16; 'module,':
0.16; 'pyqt5': 0.16; 'received:64.147': 0.16; 'setup,': 0.16;
"skip:' 120": 0.16; 'subject:3.10': 0.16; 'subject:3.8': 0.16;
'subject:PyQt5': 0.16; 'wrote:': 0.16; 'says': 0.16; 'python':
0.16; 'developer': 0.17; 'installing': 0.20; 'maybe': 0.20;
'installed': 0.20; 'install': 0.22; 'version': 0.22; 'progress':
0.23; 'to:addr:python-list': 0.23; 'command': 0.24; 'laptop':
0.24; 'lines': 0.24; 'run': 0.24; 'section': 0.26; 'skip:p 30':
0.26; 'tried': 0.26; '(as': 0.27; 'binary': 0.27; 'done': 0.28;
'module': 0.28; 'output': 0.28; 'error': 0.28; "isn't": 0.29;
'header:User-Agent:1': 0.31; 'it,': 0.31; 'there': 0.31; 'but':
0.31; 'am,': 0.31; 'fact': 0.31; 'brings': 0.32; "skip:' 40":
0.32; 'skip:= 50': 0.32; 'using': 0.33; 'unless': 0.33; 'header
:In-Reply-To:1': 0.33; 'url:edu': 0.34; 'same': 0.34;
'subject:from': 0.35; 'release': 0.35; 'usual': 0.35; 'trying':
0.36; 'windows': 0.36; 'able': 0.36; 'two': 0.37; 'people': 0.37;
'way': 0.37; "that's": 0.37; 'file': 0.38; "it's": 0.38;
'something': 0.38; 'received:209': 0.38; 'going': 0.38; 'use':
0.38; 'build': 0.40; 'messages': 0.40; 'package': 0.40; 'pretty':
0.40; "skip:' 10": 0.40; 'skip:e 10': 0.60; 'complete': 0.61;
'requirements': 0.61; 'here': 0.62; 'once': 0.64; 'your': 0.64;
'experience': 0.64; 'received:64': 0.65; 'received:us': 0.65;
'well': 0.66; 'right': 0.66; 'suite': 0.67; 'listed': 0.67;
'candidate': 0.69; 'skip:b 40': 0.69; 'below': 0.71; 'released':
0.75; 'attribute': 0.84; 'indicates': 0.84; 'mb)': 0.84;
'mismatch': 0.84; 'newest': 0.84; 'newly': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=to
:references:from:subject:message-id:date:mime-version
:in-reply-to:content-type:content-transfer-encoding; s=sasl; bh=
kFjTOMtm9OgJgZATK6jOCoZMLHeDStsyYH1JUgo79V0=; b=AQcGQ41lgFPHp4JI
ezRO6xvvB/CO3gE7OB5L07MyHp+acf3RK0N/9lRMYJSI6rEjkQAz+ScoDmN7+tUI
NKZ1qJLFECVEO66k8EIzi4iBlXOMkqGubYG4na1VI2gAjn+6C7qAXOGCkl4naklI
0nA1hXm8kMAWwiXt9ikg6vnKaOU=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=to:references:from:subject:message-id:date:mime-version:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=m4ELVqc0/kjb0Y9jiwvkIwuVYuvA+TqR/cQxG5mr81A=;
b=NiUz1mS8aYqgnMFQwVcOWFXZ9nc9D0f+VLu23zgDMgs7iBSC+gmMoQNmRRJeLC151IKWw6kKZEtJWfCMlqjZL1aAluGPfCxHJJQO3Bs7/09vEIsE15c7Mja6srQtvXhrqwiWfOdfOETr+F6wD3VeOxuty9Rut1UXokqWybkBNYw=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
In-Reply-To: <a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>
Content-Language: en-US
X-Pobox-Relay-ID: 0C9EA748-039C-11EC-B660-8B3BC6D8090B-81526775!pb-smtp1.pobox.com
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <dc0108a8-e96a-d2dc-7c3b-6929f7d1305d@wichmann.us>
X-Mailman-Original-References: <a5d9bb30-f339-4a86-83ae-3d947327051fn@googlegroups.com>
 by: Mats Wichmann - Sun, 22 Aug 2021 22:55 UTC

On 8/22/21 7:04 AM, Mohsen Owzar wrote:
> Hi guys,
> I have on my laptop the python installation 3.8 and newly I installed newest version 3.10 as well on my laptop.
> Now I have two IDLEs for both of the installations.
> When I rund some *.py file, having PyQt5 module, on the 3.8 version, it works as before without any problems.
> But whenn I run the same file on IDLE with 3.10 installation, it crashes and says that PyQt5 is not known.
>
> I tried to install this package with"pip install pyqt5" or with "py -3 -m pip install pyqt5", it brings lots of error messages (long long) as the lines below (they are only the beginning of the messages):

make sure you're getting the right Python by doing

py -3.10 -m pip install pyqt5

(the fact you're getting the build error below indicates you _are_
getting the right one, but it's good to be explicit anyway, just so
you're sure).

> =================================================> C:\Users\Mohsen>py -3 -m pip install pyqt5
> Collecting pyqt5
> Using cached PyQt5-5.15.4.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\Mohsen\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Mohsen\AppData\Local\Temp\tmprax0esmt'
> cwd: C:\Users\Mohsen\AppData\Local\Temp\pip-install-wl_b58e9\pyqt5_1cbd1bab46fa4abaad34b55514561ce6
> Complete output (33 lines):
> Querying qmake about your Qt installation...
> C:\Qt\4.7.4\bin\qmake.exe -query
> Traceback (most recent call last):
> File "C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 143, 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'

Your problem here is that there's no released binary wheel for PyQt5,
since Py 3.10 isn't released (there's been some recent chatter about
encouraging projects to make builds for new Python versions available
early, e.g. once a Python version hits release candidate state, but
that's just that - chatter - for now).

In theory your system should be able to build it, but my experience is
that unless you're an active Python developer on Windows and already
have the right working setup, it pretty much always fails. These are
the perils of trying to use a pre-release...

That error suggests there's something different going on than usual
(which has to do with the MSVC compiler suite not being set up the way
the package expects): there looks like a version mismatch - it looks
like it's finding qmake for Qt4, not Qt5. Maybe you can make some
progress by adjusting some paths?

Many people go here to get early-access, albeit unofficial, binary wheels:

https://www.lfd.uci.edu/~gohlke/pythonlibs

Unfortunately, PyQt5 is not available from there (as listed in the
section at the very bottom)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor