@S0ret

При установке модуля PyQt5 выдает ошибку, как исправить?

ERROR: Exception:
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\cli\base_command.py", line 164, in exc_logging_wrapper
status = run_func(*args)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\cli\req_command.py", line 204, in wrapper
return func(self, options, args)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\commands\install.py", line 338, in run
requirement_set = resolver.resolve(
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 482, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 349, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 151, in __bool__
return bool(self._sequence)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
return any(self)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 201, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 281, in __init__
super().__init__(
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
self.dist = self._prepare()
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
dist = self._prepare_distribution()
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 292, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\operations\prepare.py", line 481, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\operations\prepare.py", line 545, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\operations\prepare.py", line 58, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\distributions\sdist.py", line 35, in prepare_distribution_metadata
self._setup_isolation(finder)
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\distributions\sdist.py", line 47, in _setup_isolation
build_reqs = self._get_build_requires_wheel()
File "C:\Program Files\Python310\lib\site-packages\pip\_internal\distributions\sdist.py", line 82, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\pep517\wrappers.py", line 168, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\pep517\wrappers.py", line 328, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 89, in _build_backend
obj = import_module(mod_path)
File "C:\Program Files\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'sipbuild'
  • Вопрос задан
  • 351 просмотр
Решения вопроса 2
Bad-Coder
@Bad-Coder
(null)
Qt5 пока не поддерживает Python 3.10.
Ответ написан
@Andy_U
PyQt6 ставится. Также как и PySide6. И кстати, теперь PySide6 как бы не стал предпочтительным. qt.io купила этот пакет у бывшего владельца какое-то время назад. Хотя там с совместимостью не все гладко. Я свою мелкую утилиту с трудом перетащил с PyQt5 на PyQt6...

Я таки сумел скрестить PyQt5 и Python 3.10. См.мой ответ тут

После нахождения почты майнтейнера PyQt5 га PyPi, он мне написал, что 5.15 выйдет в течение нескольких дней и дал ссылку на https://www.riverbankcomputing.com/pypi/, где эта версия, вроде как доступна.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы