You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is indeed the same as #381, we're currently linking libpython statically on Linux but not macOS (#636).
But I think this is genuinely a bug in virtualenv and venv: if run against an interpreter that dynamically links libpython, --copies needs to copy libpython, or run patchelf/install_name_tool or equivalent, or not exist. Note that Apple chose the last option for their builds of Python.
Activity
geofft commentedon Jul 23, 2025
I think this is indeed the same as #381, we're currently linking libpython statically on Linux but not macOS (#636).
But I think this is genuinely a bug in virtualenv and venv: if run against an interpreter that dynamically links libpython,
--copiesneeds to copy libpython, or runpatchelf/install_name_toolor equivalent, or not exist. Note that Apple chose the last option for their builds of Python.gaborbernat commentedon Sep 23, 2026
Closing, as the fix belongs in virtualenv and venv rather than here. Thanks for tracking it down.