... One should visit nicolaasjan's GitHub repo ; load latest yt-dlp release,
https://github.com/nicolaasjan/yt-dlp/releases/latest
then expand assets (if not expanded) and there they are :
yt-dlp_win7.exe => 64-bit compile,
yt-dlp_x86_win7.exe => 32-bit compile,
BOTH are built on py3.13, so are good for the next 4 yrs, at least...
Win7-compatible py3.13 courtesy of adang1345 ...
Well, you didn't go through the GitHub issue I linked to ; there are automated solutions suggested such as this one :
https://github.com/grqz/yt-dlp-getpot-jsi/blob/master/README.md
@user57:
https://www.python.org/downloads/release/python-31018/
is the latest py3.10 release by the PSF (security-only release in source-code form:
https://www.python.org/ftp/python/3.10.18/Python-3.10.18.tar.xz )
Let me just say that achieving Vista SP2 (NT 6.0) compatibility should be much easier that targeting XP (NT 5.x); the last Vista compatible version was py3.7 (py3.4 for XP SP3).
One should thoroughly comb the py3.10 source code and identify ALL the Vista breaking code the PSF authored after py3.7; these changes should then be reverted or rewritten with "translated" code that is py3.7 compatible; once that task has been completed, the modded source should then be compiled with a suitable compiler (MSVC and/or MSYS2) targeting NT 6.0 and, also, the 32-bit architecture; but this is NOT all ; yt-dlp itself has quite a large number of dependencies, i.e. Python modules; the py3.10 wheels for them to be found on PyPI are made with the official py3.10 in mind, so compatibility with a Vista-py3.10 isn't always a given, especially in the case when the modules contain C/C++ extensions (i.e. DLLs, which, under Windows, have the .pyd file extension); these Python modules have to be recompiled from their sources using the modded py3.10 and the same compiler that compiled py3.10 itself (probably on a Win10 host).
Things on XP should be even more difficult because several py3.10 own dependencies, e.g. OpenSSL, have moved away from XP long time ago...
https://github.com/adang1345/PythonWin7/blob/master/Notes.md#python-310
and
https://github.com/adang1345/PythonWin7/tree/master/patches
are adang1345's instructions on how to make py3.10 run on Win7; perhaps they'd be somehow useful for someone wanting to also attain NT 6.0 compatibility ...
PS: the yt-dlp devs are adamant on always dropping a Python version once the PSF have dropped security support for that version (they're also keen on using the latest bells and whistles a new Python version comes with ) ; and the PSF always align themselves behind Microsoft when it comes to the Windows OS, so, as a result, only Win10+ is officially supported now ...
PS2: Maroc's py3.11 offering previously discussed is what is called a binhack (binary hack): official DLL and EXE binaries are HexEdited and XP-incompatible functions are either stubbed or forwarded to a set of wrappers, mostly One-Core-API and/or Wine DLLs; the end result 1) makes my antivirus solution go completely berserk 2) WON'T even launch under Vista SP2 32-bit, as the wrapper DLLs specifically target NT 5.x system DLLs ...