Answer the question
In order to leave comments, you need to log in
When installing the PyQt5 module, it gives an error, how to fix it?
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'
Answer the question
In order to leave comments, you need to log in
PyQt6 is installed. Same as PySide6. And by the way, PySide6 is no longer preferred. qt.io bought this package from the former owner some time ago. Although there with compatibility, not everything is smooth. I hardly dragged my small utility from PyQt5 to PyQt6 ...
I still managed to cross PyQt5 and Python 3.10. See my answer here
After finding the PyQt5 and PyPi maintainer's mail, he wrote me that 5.15 will be released within a few days and gave a link to https://www.riverbankcomputing.com/pypi/ , where this version seems to be available.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question