Ronald Oussoren <ronaldousso...@mac.com> added the comment:
> In any case, do you think that there is a way to get the behavior I am > looking for (basically, invoke a Python interpreter that has sys.prefix set > to the venv but without a symbolic link)? Not that I know. Using the python binary in the virtual environment is part of the design of this feature. That you can "fake" this on a lot of unix platforms by using a different interpreter with argv[0] set to a different path is a happy coincidence. I'm also not convinced that your trick actually accomplishes what you hope, the virtual environment still has a dependency on the Python installation in the original location. That location is mentioned in pyvenv.cfg at the root of the environment, and AFAIK that configuration is used to set up sys.path. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42312> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com