[issue43749] venv module does not copy the correct python exe

Eryk Sun report at bugs.python.org
Fri Dec 10 16:21:59 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

The Windows implementation of symlink_or_copy() actually copies "python.exe" and "pythonw.exe" launchers from "Lib/venv/scripts/nt". One cannot simply copy the "python3.exe" executable because the required DLLs aren't copied. If this seemed to work when testing, it was only because the installation directory was in PATH. The solution that actually works is to copy the launcher as "python3.exe".

----------
nosy: +eryksun
resolution: fixed -> 
stage: resolved -> 
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43749>
_______________________________________


More information about the Python-bugs-list mailing list