Этот вопрос закрыт для ответов, так как повторяет вопрос Что делать если не устанавливается pyautogui?
@selw1

Как убрать ошибку при скачивании библиотеки PyAutoGUI?

при попытке скачки библиотеки PyAutoGUI выходит ошибка:
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 164, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 205, in wrapper
return func(self, options, args)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\commands\install.py", line 338, in run
requirement_set = resolver.resolve(
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 482, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 374, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 214, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 205, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 151, in __bool__
return bool(self._sequence)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __boo
l__
return any(self)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in xpr>
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_
built
candidate = func()
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 201, in _make_candidat
e_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 281, in __init__
super().__init__(
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
self.dist = self._prepare()
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
dist = self._prepare_distribution()
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 292, in _prepare_di
stribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 482, in prepare_linked_requiremen
t
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 546, in _prepare_linked_requireme
nt
dist = _get_prepared_distribution(
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 59, in _get_prepared_distribution
return abstract_dist.get_metadata_distribution()
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\distributions\wheel.py", line 26, in get_metadata_distribution
return get_wheel_distribution(wheel, canonicalize_name(self.req.name))
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\metadata\__init__.py", line 51, in get_wheel_distribution
return Distribution.from_wheel(wheel, canonical_name)
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\metadata\pkg_resources.py", line 37, in from_wheel
with wheel.as_zipfile() as zf:
File "C:\Users\User\PycharmProjects\pythonProject2\venv\lib\site-packages\pip\_internal\metadata\base.py", line 321, in as_zipfile
return zipfile.ZipFile(self.location, allowZip64=True)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in __init__
self._RealGetContents()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

как исправить?
  • Вопрос задан
  • 66 просмотров
Ваш ответ на вопрос

Вопрос закрыт для ответов и комментариев

Потому что уже есть похожий вопрос.
Похожие вопросы