>py -0p Installed Pythons found by C:\Windows\py.exe Launcher for Windows -3.9-32 C:\Users\admin\AppData\Local\Programs\Python\Python39-32\python.exe *
Ожидаю что *.py будут запускались как исполняемые, но что-то не так.
Активирую диагностику
set PYLAUNCH_DEBUG=1
, пробую запустить какой-нибудь скрипт (без shebang)launcher build: 32bit launcher executable: Console File 'C:\Users\admin\AppData\Local\py.ini' non-existent File 'C:\Program Files\Python Launcher\py.ini' non-existent Called with command line: "[censored]" maybe_handle_shebang: read 256 bytes maybe_handle_shebang: BOM not found, using UTF-8 locating Pythons in native registry Can't enumerate registry key for version : More data is available. locate_pythons_for_key: unable to open PythonCore key in HKLM found no configured value for 'python' search for default Python found no interpreter Can't find a default Python.
То же, но с
#!/usr/bin/env python3
:Разницы нет из фара запускать или из cmd.launcher build: 32bit launcher executable: Console File 'C:\Users\admin\AppData\Local\py.ini' non-existent File 'C:\Program Files\Python Launcher\py.ini' non-existent Called with command line: "[censored]" maybe_handle_shebang: read 256 bytes maybe_handle_shebang: BOM not found, using UTF-8 parse_shebang: found command: python3 locating Pythons in native registry Can't enumerate registry key for version : More data is available. locate_pythons_for_key: unable to open PythonCore key in HKLM found no configured value for 'python3' search for Python version '3' found no interpreter Requested Python version (3) is not installed
Гуглить пробовал, но ничего не подошло.
Идеи?