Steve Dower <steve.do...@python.org> added the comment:
If you just want to be able to import modules from the venv, and you know the path to it, it's simpler to just do: import sys sys.path.append(r"path to venv\Lib\site-packages") Updating sys.executable is only necessary if you're going to use libraries that try to re-launch itself, but any embedding application is going to have to do that anyway. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue22213> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com