PyInstaller – он не создает файл .exe.Python

Программы на Python
Ответить
Anonymous
 PyInstaller – он не создает файл .exe.

Сообщение Anonymous »

Я использую команду pyinstaller main.spec. Следующий файл main.spec:

Код: Выделить всё

# -*- mode: python ; coding: utf-8 -*-

a = Analysis(
['main.py', 'flujo.py', 'flujo_if.py', 'descarga_manual.py', 'descarga_manual_if.py', 'subida_lectura_manual.py', 'subida_lectura_manual_if.py', 'lectura_manual.py', 'lectura_manual_if.py'],
pathex=[],
binaries=[],
datas=[
('./common', 'common'),
('./Scripts', 'Scripts'),
('./APIS', 'APIS'),
('./PrcsINTRCRP', 'PrcsINTRCRP'),
('./SQL', 'SQL')
],
hiddenimports=['cryptography.hazmat.primitives.kdf.pbkdf2'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
icon='./logo.ico',
name='APRORE',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
Когда я выполняю команду, pyinstaller не завершает процесс создания файла .exe, но повторяет эту часть процесса:

Код: Выделить всё

2025-11-14 17:09:24.550027: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-11-14 17:09:30.076958: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-11-14 17:10:12.931681: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-11-14 17:10:27.138718: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
и эта часть:

Код: Выделить всё

W1114 17:07:45.373000 7284 site-packages\torch\distributed\elastic\multiprocessing\redirects.py:29] NOTE: Redirects are currently not supported in Windows or MacOs.
C:\Users\paul.delacruz\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\utils\hooks\__init__.py:666: DeprecationWarning: `torch.distributed._sharding_spec` will be deprecated, use `torch.distributed._shard.sharding_spec` instead
__import__(name)
C:\Users\paul.delacruz\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\utils\hooks\__init__.py:666: DeprecationWarning: `torch.distributed._sharded_tensor` will be deprecated, use `torch.distributed._shard.sharded_tensor` instead
__import__(name)
C:\Users\paul.delacruz\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\utils\hooks\__init__.py:666: DeprecationWarning: `torch.distributed._shard.checkpoint` will be deprecated, use `torch.distributed.checkpoint` instead
__import__(name)
Я не меняю никакую часть файла спецификации и использовал его раньше. Кто-то знает почему и как это исправить? Заранее спасибо

Подробнее здесь: https://stackoverflow.com/questions/798 ... n-exe-file
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»