This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ian Norton
Recipients Ian Norton
Date 2021-04-06.13:27:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617715625.46.0.74507922397.issue43749@roundup.psfhosted.org>
In-reply-to
Content
On windows, the venv module does not copy the correct python exe if the current running exe (eg sys.executable) has been renamed (eg, named python3.exe)

venv will only make copies of python.exe, pythonw.exe, python_d.exe or pythonw_d.exe.

If for example the python executable has been renamed from python.exe to python3.exe (eg, to co-exist in a system where multiple pythons are on PATH) then this can fail with errors like:

Error: [WinError 2] The system cannot find the file specified

When venv tries to run pip in the new environment.

If the running python executable is a differently named copy then errors like the one described in https://bugs.python.org/issue40588 are seen.
History
Date User Action Args
2021-04-06 13:27:05Ian Nortonsetrecipients: + Ian Norton
2021-04-06 13:27:05Ian Nortonsetmessageid: <1617715625.46.0.74507922397.issue43749@roundup.psfhosted.org>
2021-04-06 13:27:05Ian Nortonlinkissue43749 messages
2021-04-06 13:27:05Ian Nortoncreate