Correctly migrate Python virtual environments
Do not copy a Python virtual environment (
venv) folder directly to a new location. Copying breaks the hardcoded path bindings found in pyvenv.cfg and the activation scripts. Instead, recreate the virtual environment in the target location using a requirements.txt or pyproject.toml file.