[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

Eryk Sun report at bugs.python.org
Mon Dec 13 00:08:56 EST 2021


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

Try using symlinks if you're allowed, e.g. `python -m venv --symlinks <name>`.

Note that a virtual environment created with symlinks is unreliable in some cases because ShellExecute[Ex]W() eagerly resolves a symlink before calling CreateProcessW().

Also, you won't be able to use EXE script wrappers in an active environment due to the security restrictions in place on your system. You'll need to use `python -m <module>` alternative commands, such as `python -m pip` instead of `pip`.

----------
components:  -Windows
nosy: +eryksun

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


More information about the Python-bugs-list mailing list