[issue42312] sys.prefix is set incorrectly on Mac OS X

Ned Deily report at bugs.python.org
Tue Nov 10 10:47:46 EST 2020


Ned Deily <nad at python.org> added the comment:

I'm not sure I understand exactly what you are trying to accomplish but one potential issue strikes me: you may need to ensure you are execing the right python binary by including a more complete path:

$ (exec -a test-venv/bin/python3 test-venv/bin/python3 -c 'import sys; print(sys.executable); print (sys.prefix);')
/private/tmp/test-venv/bin/python3
/private/tmp/test-venv

----------

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


More information about the Python-bugs-list mailing list