#python #pyinstaller
Вопрос:
Я пытаюсь установить pyinstaller на машину, у которой нет доступа к Интернету. Я получаю сообщение об ошибке:
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:apipython38python.exe' 'c:apipython38libsite-packagespip' install --ignore-installed --no-user --prefix 'C:UsersUserAppDataLocalTemppip-build-env-z666qxbsoverlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools
cwd: None
Complete output (8 lines):
Collecting wheel
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000456B700>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /simple/wheel/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000456BBE0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /simple/wheel/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000456BDF0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /simple/wheel/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000452E9D0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /simple/wheel/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000452E7C0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /simple/wheel/
ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)
ERROR: No matching distribution found for wheel
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:apipython38python.exe' 'c:apipython38libsite-packagespip' install --ignore-installed --no-user --prefix 'C:UsersUserAppDataLocalTemppip-build-env-z666qxbsoverlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Check the logs for full command output
Не удается найти список зависимостей для pyinstaller. Что мне нужно установить в первую очередь?
P.S. Установлен модуль «колесо».
Ответ №1:
PyInstaller требует двух модулей Python в системе Windows. Для этого требуется расширение Python PyWin32 или pypiwin32 для Windows. https://pyinstaller.readthedocs.io/en/stable/requirements.html
Комментарии:
1. установлены оба модуля: pywin32(301), pypiwin32(223), а также установлен файл pefile(2021.5.24). Та же ошибка